Add store version label to sessions list.

This commit is contained in:
John Preston 2018-06-04 13:41:53 +03:00
parent 18f38f0983
commit fae4b92d8d
1 changed files with 7 additions and 1 deletions

View File

@ -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),