mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 06:43:43 +00:00
Merge commit '44060eaaf9c7e4c8b679a555255956d24bed9784'
This commit is contained in:
commit
af52184c6c
@ -66,10 +66,8 @@ private final class GroupsInCommonContextImpl {
|
|||||||
|> mapToSignal { result -> Signal<([Peer], Int), NoError> in
|
|> mapToSignal { result -> Signal<([Peer], Int), NoError> in
|
||||||
let chats: [Api.Chat]
|
let chats: [Api.Chat]
|
||||||
let count: Int?
|
let count: Int?
|
||||||
|
if let result = result {
|
||||||
switch result {
|
switch result {
|
||||||
case .none:
|
|
||||||
chats = []
|
|
||||||
count = nil
|
|
||||||
case let .chats(apiChats):
|
case let .chats(apiChats):
|
||||||
chats = apiChats
|
chats = apiChats
|
||||||
count = nil
|
count = nil
|
||||||
@ -77,6 +75,11 @@ private final class GroupsInCommonContextImpl {
|
|||||||
chats = apiChats
|
chats = apiChats
|
||||||
count = Int(apiCount)
|
count = Int(apiCount)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
chats = []
|
||||||
|
count = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return postbox.transaction { transaction -> ([Peer], Int) in
|
return postbox.transaction { transaction -> ([Peer], Int) in
|
||||||
var peers: [Peer] = []
|
var peers: [Peer] = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user