mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Don't hide trending panel when no unread packs exist
This commit is contained in:
@@ -796,14 +796,12 @@ final class ChatMediaInputNode: ChatInputNode {
|
||||
|
||||
var hasUnreadTrending: Bool?
|
||||
for pack in trendingPacks {
|
||||
if !installedPacks.contains(pack.info.id) {
|
||||
if hasUnreadTrending == nil {
|
||||
hasUnreadTrending = false
|
||||
}
|
||||
if pack.unread {
|
||||
hasUnreadTrending = true
|
||||
break
|
||||
}
|
||||
if hasUnreadTrending == nil {
|
||||
hasUnreadTrending = false
|
||||
}
|
||||
if pack.unread {
|
||||
hasUnreadTrending = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user