From 9e35583daedf7ecef96b0033eee3bb7eb08d163b Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 31 Jan 2023 18:37:04 +0100 Subject: [PATCH] Adjust key expiration --- submodules/MtProtoKit/Sources/MTContext.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/submodules/MtProtoKit/Sources/MTContext.m b/submodules/MtProtoKit/Sources/MTContext.m index 46b9b05bc2..44cb2a8f53 100644 --- a/submodules/MtProtoKit/Sources/MTContext.m +++ b/submodules/MtProtoKit/Sources/MTContext.m @@ -227,10 +227,11 @@ static int32_t fixedTimeDifferenceValue = 0; _apiEnvironment = apiEnvironment; _isTestingEnvironment = isTestingEnvironment; _useTempAuthKeys = useTempAuthKeys; -#if DEBUG - _tempKeyExpiration = 30; -#else + _tempKeyExpiration = 24 * 60 * 60; + +#if DEBUG + //_tempKeyExpiration = 30; #endif _datacenterSeedAddressSetById = [[NSMutableDictionary alloc] init];