From fae4b92d8d6d9a02edcef34553a5d366375b13ae Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 4 Jun 2018 13:41:53 +0300 Subject: [PATCH] Add store version label to sessions list. --- Telegram/SourceFiles/mtproto/connection.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mtproto/connection.cpp b/Telegram/SourceFiles/mtproto/connection.cpp index 174960c8cd..4c24550c7c 100644 --- a/Telegram/SourceFiles/mtproto/connection.cpp +++ b/Telegram/SourceFiles/mtproto/connection.cpp @@ -829,6 +829,12 @@ void ConnectionPrivate::tryToSend() { const auto systemVersion = (_dcType == DcType::Cdn) ? "n/a" : Messenger::Instance().launcher()->systemVersion(); +#if defined OS_MAC_STORE || defined OS_WIN_STORE + const auto appVersion = str_const_toString(AppVersionStr) + + " store"; +#else // OS_MAC_STORE || OS_WIN_STORE + const auto appVersion = str_const_toString(AppVersionStr); +#endif // OS_MAC_STORE || OS_WIN_STORE const auto proxyType = _connectionOptions->proxy.type; const auto mtprotoProxy = (proxyType == ProxyData::Type::Mtproto); const auto clientProxyFields = mtprotoProxy @@ -842,7 +848,7 @@ void ConnectionPrivate::tryToSend() { MTP_int(ApiId), MTP_string(deviceModel), MTP_string(systemVersion), - MTP_string(str_const_toString(AppVersionStr)), + MTP_string(appVersion), MTP_string(systemLangCode), MTP_string(langPack), MTP_string(cloudLangCode),