mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Topic-related fixes
This commit is contained in:
@@ -194,7 +194,7 @@ public extension TelegramEngine.EngineData.Item {
|
||||
}
|
||||
|
||||
var key: PostboxViewKey {
|
||||
return .unreadCounts(items: [.peer(self.id)])
|
||||
return .unreadCounts(items: [.peer(id: self.id, handleThreads: true)])
|
||||
}
|
||||
|
||||
public init(id: EnginePeer.Id) {
|
||||
@@ -206,7 +206,7 @@ public extension TelegramEngine.EngineData.Item {
|
||||
preconditionFailure()
|
||||
}
|
||||
|
||||
return Int(view.count(for: .peer(self.id)) ?? 0)
|
||||
return Int(view.count(for: .peer(id: self.id, handleThreads: true)) ?? 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user