Closed beta 1000017001: enable auth_key_destroy.

Now we use only new authorization keys for signing in. If we are
preparing to sign in and we see, that some of the authorization
keys were not generated in this launch, but were read from file, we
destroy all existing auth keys and generate a completely new set.
This commit is contained in:
John Preston 2017-02-28 19:08:30 +03:00
parent 12705c9065
commit a4a7a77abd
6 changed files with 14 additions and 14 deletions

View file

@ -9,7 +9,7 @@
<Identity Name="TelegramDesktop"
ProcessorArchitecture="x64"
Publisher="CN=Telegram Messenger LLP, O=Telegram Messenger LLP, L=London, C=GB"
Version="1.0.17.0" />
Version="1.0.17.1" />
<Properties>
<DisplayName>Telegram Desktop</DisplayName>
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>

View file

@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,17,0
PRODUCTVERSION 1,0,17,0
FILEVERSION 1,0,17,1
PRODUCTVERSION 1,0,17,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -52,10 +52,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram Messenger LLP"
VALUE "FileDescription", "Telegram Desktop"
VALUE "FileVersion", "1.0.17.0"
VALUE "FileVersion", "1.0.17.1"
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "1.0.17.0"
VALUE "ProductVersion", "1.0.17.1"
END
END
BLOCK "VarFileInfo"

View file

@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,17,0
PRODUCTVERSION 1,0,17,0
FILEVERSION 1,0,17,1
PRODUCTVERSION 1,0,17,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -43,10 +43,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram Messenger LLP"
VALUE "FileDescription", "Telegram Desktop Updater"
VALUE "FileVersion", "1.0.17.0"
VALUE "FileVersion", "1.0.17.1"
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "1.0.17.0"
VALUE "ProductVersion", "1.0.17.1"
END
END
BLOCK "VarFileInfo"

View file

@ -22,9 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "core/utils.h"
#define BETA_VERSION_MACRO (0ULL)
#define BETA_VERSION_MACRO (1000017001ULL)
constexpr int AppVersion = 1000017;
constexpr str_const AppVersionStr = "1.0.17";
constexpr bool AppAlphaVersion = true;
constexpr bool AppAlphaVersion = false;
constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;

View file

@ -318,7 +318,7 @@ void Messenger::destroyStaleAuthorizationKeys() {
auto keys = _mtproto->getKeysForWrite();
for (auto &key : keys) {
// Disable this for now.
if (false && key->type() == MTP::AuthKey::Type::ReadFromFile) {
if (key->type() == MTP::AuthKey::Type::ReadFromFile) {
_private->mtpKeysToDestroy = _mtproto->getKeysForWrite();
_mtproto.reset();
LOG(("MTP Info: destroying stale keys, count: %1").arg(_private->mtpKeysToDestroy.size()));

View file

@ -2,5 +2,5 @@ AppVersion 1000017
AppVersionStrMajor 1.0
AppVersionStrSmall 1.0.17
AppVersionStr 1.0.17
AlphaChannel 1
BetaVersion 0
AlphaChannel 0
BetaVersion 1000017001