From 2a5102496dfed36d3566d064e9bb2b2ecfbad35f Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sat, 30 Sep 2023 19:45:01 +0400 Subject: [PATCH] Disable receiveMessages --- .../TelegramCore/Sources/State/AccountStateManager.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/State/AccountStateManager.swift b/submodules/TelegramCore/Sources/State/AccountStateManager.swift index 9faf4f49f7..1601b20c24 100644 --- a/submodules/TelegramCore/Sources/State/AccountStateManager.swift +++ b/submodules/TelegramCore/Sources/State/AccountStateManager.swift @@ -311,11 +311,12 @@ public final class AccountStateManager { |> distinctUntilChanged |> mapToSignal { value -> Signal in if isMaxMessageId { - return network.request(Api.functions.messages.receivedMessages(maxId: value)) + return .complete() + /*return network.request(Api.functions.messages.receivedMessages(maxId: value)) |> ignoreValues |> `catch` { _ -> Signal in return .complete() - } + }*/ } else { if value == 0 { return .complete()