mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Disable receiveMessages
This commit is contained in:
parent
9ab9a30dc7
commit
2a5102496d
1 changed files with 3 additions and 2 deletions
|
|
@ -311,11 +311,12 @@ public final class AccountStateManager {
|
|||
|> distinctUntilChanged
|
||||
|> mapToSignal { value -> Signal<Never, NoError> 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<Never, NoError> in
|
||||
return .complete()
|
||||
}
|
||||
}*/
|
||||
} else {
|
||||
if value == 0 {
|
||||
return .complete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue