2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Closed beta 1000014001: testing MTP changes.

Destroying of the authorization keys disabled for now.
This commit is contained in:
John Preston
2017-02-25 20:15:30 +03:00
parent 7d89b54d1c
commit 6b70cc342a
6 changed files with 13 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "core/utils.h"
#define BETA_VERSION_MACRO (0ULL)
#define BETA_VERSION_MACRO (1000014001ULL)
constexpr int AppVersion = 1000014;
constexpr str_const AppVersionStr = "1.0.14";

View File

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