2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show better information in sessions list.

This commit is contained in:
John Preston
2018-06-03 22:52:23 +03:00
parent b4a2e84aa3
commit e122353bfb
12 changed files with 155 additions and 34 deletions

View File

@@ -13,6 +13,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mtproto/dc_options.h"
#include "mtproto/connection_abstract.h"
#include "zlib.h"
#include "messenger.h"
#include "core/launcher.h"
#include "lang/lang_keys.h"
#include "base/openssl_help.h"
#include "base/qthelp_url.h"
@@ -822,10 +824,10 @@ void ConnectionPrivate::tryToSend() {
const auto langPack = "tdesktop";
const auto deviceModel = (_dcType == DcType::Cdn)
? "n/a"
: cApiDeviceModel();
: Messenger::Instance().launcher()->deviceModel();
const auto systemVersion = (_dcType == DcType::Cdn)
? "n/a"
: cApiSystemVersion();
: Messenger::Instance().launcher()->systemVersion();
const auto proxyType = _connectionOptions->proxy.type;
const auto mtprotoProxy = (proxyType == ProxyData::Type::Mtproto);
const auto clientProxyFields = mtprotoProxy