Updated TDesktop sources to 2.7.1+3343880

This commit is contained in:
Eric Kotato 2021-04-07 02:28:17 +03:00
commit 153218448c
2 changed files with 10 additions and 2 deletions

View file

@ -25,6 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/unixtime.h"
#include "base/call_delayed.h"
#include "base/timer.h"
#include "base/network_reachability.h"
#include "facades.h" // Proxies list.
namespace MTP {
@ -216,6 +217,7 @@ private:
const not_null<Instance*> _instance;
const Instance::Mode _mode = Instance::Mode::Normal;
const std::unique_ptr<Config> _config;
const std::shared_ptr<base::NetworkReachability> _networkReachability;
std::unique_ptr<QThread> _mainSessionThread;
std::unique_ptr<QThread> _otherSessionsThread;
@ -296,7 +298,8 @@ Instance::Private::Private(
: Sender(instance)
, _instance(instance)
, _mode(mode)
, _config(std::move(fields.config)) {
, _config(std::move(fields.config))
, _networkReachability(base::NetworkReachability::Instance()) {
Expects(_config != nullptr);
const auto idealThreadPoolSize = QThread::idealThreadCount();
@ -307,6 +310,11 @@ Instance::Private::Private(
unpaused();
}, _lifetime);
_networkReachability->availableChanges(
) | rpl::start_with_next([=](bool available) {
restart();
}, _lifetime);
_deviceModel = std::move(fields.deviceModel);
_systemVersion = std::move(fields.systemVersion);

@ -1 +1 @@
Subproject commit abb86932a6215f5df72941e466d22a760efa39de
Subproject commit 5ee9dfd35cc623dd5bf51bf937f698838ffe756a