From e543bf1e2ea0513b0ac9cdc79c21a08bb71f09d7 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Tue, 15 Oct 2024 17:24:21 +0400 Subject: [PATCH] Disable pts --- .../Sources/State/AccountStateManager.swift | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/submodules/TelegramCore/Sources/State/AccountStateManager.swift b/submodules/TelegramCore/Sources/State/AccountStateManager.swift index 1ae6baf6ea..abaf7e17dd 100644 --- a/submodules/TelegramCore/Sources/State/AccountStateManager.swift +++ b/submodules/TelegramCore/Sources/State/AccountStateManager.swift @@ -768,11 +768,16 @@ public final class AccountStateManager { |> deliverOn(self.queue) |> mapToSignal { [weak self] state, invalidatedChannels, disableParallelChannelReset -> Signal<(difference: Api.updates.Difference?, finalStatte: AccountReplayedFinalState?, skipBecauseOfError: Bool, resetState: Bool), NoError> in if let state = state, let authorizedState = state.state { - let flags: Int32 - let ptsTotalLimit: Int32? + var flags: Int32 = 0 + var ptsTotalLimit: Int32? - flags = 1 << 0 - ptsTotalLimit = 1000 + if !"".isEmpty { + flags |= 1 << 0 + ptsTotalLimit = 1000 + } + + flags = 0 + ptsTotalLimit = nil if let strongSelf = self { if !invalidatedChannels.isEmpty {