mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Update API
This commit is contained in:
@@ -616,7 +616,7 @@ public final class AccountViewTracker {
|
||||
return .single(nil)
|
||||
}
|
||||
|> mapToSignal { result -> Signal<Void, NoError> in
|
||||
guard case let .messageViews(viewCounts, users)? = result else {
|
||||
guard case let .messageViews(viewCounts, chats, users)? = result else {
|
||||
return .complete()
|
||||
}
|
||||
|
||||
@@ -631,6 +631,11 @@ public final class AccountViewTracker {
|
||||
peerPresences[telegramUser.id] = presence
|
||||
}
|
||||
}
|
||||
for chat in chats {
|
||||
if let groupOrChannel = parseTelegramGroupOrChannel(chat: chat) {
|
||||
peers.append(groupOrChannel)
|
||||
}
|
||||
}
|
||||
|
||||
updatePeers(transaction: transaction, peers: peers, update: { _, updated -> Peer in
|
||||
return updated
|
||||
|
||||
Reference in New Issue
Block a user