Update Ghostgram features

This commit is contained in:
ichmagmaus 812
2026-03-07 18:15:32 +01:00
parent 1a3303b059
commit 24a7ec39d9
902 changed files with 148302 additions and 62355 deletions
@@ -24,14 +24,16 @@ func _internal_inactiveChannelList(network: Network) -> Signal<[InactiveChannel]
|> retryRequest
|> map { result in
switch result {
case let .inactiveChats(dates, chats, _):
case let .inactiveChats(inactiveChatsData):
let (dates, chats) = (inactiveChatsData.dates, inactiveChatsData.chats)
let channels = chats.compactMap {
parseTelegramGroupOrChannel(chat: $0)
}
var participantsCounts: [PeerId: Int32] = [:]
for chat in chats {
switch chat {
case let .channel(_, _, _, _, _, _, _, _, _, _, _, _, participantsCountValue, _, _, _, _, _, _, _, _, _, _):
case let .channel(channelData):
let participantsCountValue = channelData.participantsCount
if let participantsCountValue = participantsCountValue {
participantsCounts[chat.peerId] = participantsCountValue
}