Refactoring

This commit is contained in:
Ali
2021-09-07 13:09:06 +04:00
parent f0f02dc4b9
commit 1141e09c1b
257 changed files with 1894 additions and 1720 deletions

View File

@@ -24,16 +24,16 @@ func _internal_inactiveChannelList(network: Network) -> Signal<[InactiveChannel]
|> retryRequest
|> map { result in
switch result {
case let .inactiveChats(dates, chats, users):
case let .inactiveChats(dates, chats, _):
let channels = chats.compactMap {
parseTelegramGroupOrChannel(chat: $0)
}
var participantsCounts: [PeerId: Int32] = [:]
for chat in chats {
switch chat {
case let .channel(channel):
if let participantsCountValue = channel.participantsCount {
participantsCounts[chat.peerId] = channel.participantsCount
case let .channel(_, _, _, _, _, _, _, _, _, _, _, participantsCountValue):
if let participantsCountValue = participantsCountValue {
participantsCounts[chat.peerId] = participantsCountValue
}
default:
break