mirror of https://github.com/procxx/kepka.git
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:
parent
12705c9065
commit
a4a7a77abd
|
@ -9,7 +9,7 @@
|
||||||
<Identity Name="TelegramDesktop"
|
<Identity Name="TelegramDesktop"
|
||||||
ProcessorArchitecture="x64"
|
ProcessorArchitecture="x64"
|
||||||
Publisher="CN=Telegram Messenger LLP, O=Telegram Messenger LLP, L=London, C=GB"
|
Publisher="CN=Telegram Messenger LLP, O=Telegram Messenger LLP, L=London, C=GB"
|
||||||
Version="1.0.17.0" />
|
Version="1.0.17.1" />
|
||||||
<Properties>
|
<Properties>
|
||||||
<DisplayName>Telegram Desktop</DisplayName>
|
<DisplayName>Telegram Desktop</DisplayName>
|
||||||
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>
|
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>
|
||||||
|
|
|
@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,0,17,0
|
FILEVERSION 1,0,17,1
|
||||||
PRODUCTVERSION 1,0,17,0
|
PRODUCTVERSION 1,0,17,1
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -52,10 +52,10 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Telegram Messenger LLP"
|
VALUE "CompanyName", "Telegram Messenger LLP"
|
||||||
VALUE "FileDescription", "Telegram Desktop"
|
VALUE "FileDescription", "Telegram Desktop"
|
||||||
VALUE "FileVersion", "1.0.17.0"
|
VALUE "FileVersion", "1.0.17.1"
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
|
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
|
||||||
VALUE "ProductName", "Telegram Desktop"
|
VALUE "ProductName", "Telegram Desktop"
|
||||||
VALUE "ProductVersion", "1.0.17.0"
|
VALUE "ProductVersion", "1.0.17.1"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
|
@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,0,17,0
|
FILEVERSION 1,0,17,1
|
||||||
PRODUCTVERSION 1,0,17,0
|
PRODUCTVERSION 1,0,17,1
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -43,10 +43,10 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Telegram Messenger LLP"
|
VALUE "CompanyName", "Telegram Messenger LLP"
|
||||||
VALUE "FileDescription", "Telegram Desktop Updater"
|
VALUE "FileDescription", "Telegram Desktop Updater"
|
||||||
VALUE "FileVersion", "1.0.17.0"
|
VALUE "FileVersion", "1.0.17.1"
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
|
VALUE "LegalCopyright", "Copyright (C) 2014-2017"
|
||||||
VALUE "ProductName", "Telegram Desktop"
|
VALUE "ProductName", "Telegram Desktop"
|
||||||
VALUE "ProductVersion", "1.0.17.0"
|
VALUE "ProductVersion", "1.0.17.1"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
|
@ -22,9 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||||
|
|
||||||
#include "core/utils.h"
|
#include "core/utils.h"
|
||||||
|
|
||||||
#define BETA_VERSION_MACRO (0ULL)
|
#define BETA_VERSION_MACRO (1000017001ULL)
|
||||||
|
|
||||||
constexpr int AppVersion = 1000017;
|
constexpr int AppVersion = 1000017;
|
||||||
constexpr str_const AppVersionStr = "1.0.17";
|
constexpr str_const AppVersionStr = "1.0.17";
|
||||||
constexpr bool AppAlphaVersion = true;
|
constexpr bool AppAlphaVersion = false;
|
||||||
constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;
|
constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;
|
||||||
|
|
|
@ -318,7 +318,7 @@ void Messenger::destroyStaleAuthorizationKeys() {
|
||||||
auto keys = _mtproto->getKeysForWrite();
|
auto keys = _mtproto->getKeysForWrite();
|
||||||
for (auto &key : keys) {
|
for (auto &key : keys) {
|
||||||
// Disable this for now.
|
// Disable this for now.
|
||||||
if (false && key->type() == MTP::AuthKey::Type::ReadFromFile) {
|
if (key->type() == MTP::AuthKey::Type::ReadFromFile) {
|
||||||
_private->mtpKeysToDestroy = _mtproto->getKeysForWrite();
|
_private->mtpKeysToDestroy = _mtproto->getKeysForWrite();
|
||||||
_mtproto.reset();
|
_mtproto.reset();
|
||||||
LOG(("MTP Info: destroying stale keys, count: %1").arg(_private->mtpKeysToDestroy.size()));
|
LOG(("MTP Info: destroying stale keys, count: %1").arg(_private->mtpKeysToDestroy.size()));
|
||||||
|
|
|
@ -2,5 +2,5 @@ AppVersion 1000017
|
||||||
AppVersionStrMajor 1.0
|
AppVersionStrMajor 1.0
|
||||||
AppVersionStrSmall 1.0.17
|
AppVersionStrSmall 1.0.17
|
||||||
AppVersionStr 1.0.17
|
AppVersionStr 1.0.17
|
||||||
AlphaChannel 1
|
AlphaChannel 0
|
||||||
BetaVersion 0
|
BetaVersion 1000017001
|
||||||
|
|
Loading…
Reference in New Issue