diff --git a/submodules/TelegramCore/Sources/State/AccountStateManager.swift b/submodules/TelegramCore/Sources/State/AccountStateManager.swift index 510015a6fe..4cbcdfa3a9 100644 --- a/submodules/TelegramCore/Sources/State/AccountStateManager.swift +++ b/submodules/TelegramCore/Sources/State/AccountStateManager.swift @@ -1204,7 +1204,7 @@ public final class AccountStateManager { let flags: Int32 = 0 let ptsTotalLimit: Int32? = nil - let request = network.request(Api.functions.updates.getDifference(flags: flags, pts: authorizedState.pts, ptsTotalLimit: ptsTotalLimit, date: Int32.max, qts: authorizedState.qts)) + let request = network.request(Api.functions.updates.getDifference(flags: flags, pts: authorizedState.pts, ptsLimit: nil, ptsTotalLimit: ptsTotalLimit, date: Int32.max, qts: authorizedState.qts, qtsLimit: nil)) |> map(Optional.init) |> `catch` { error -> Signal in if error.errorCode == 406 && error.errorDescription == "AUTH_KEY_DUPLICATED" {