ios: fixed unread counters (#5640)

This commit is contained in:
Stanislav Dmitrenko 2025-02-19 03:44:24 +07:00 committed by GitHub
parent 9d1329498b
commit ec519afb3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 66 deletions

View file

@ -1513,7 +1513,7 @@ func markChatRead(_ chat: Chat) async {
let cInfo = chat.chatInfo
try await apiChatRead(type: cInfo.chatType, id: cInfo.apiId)
await MainActor.run {
withAnimation { ChatModel.shared.markChatItemsRead(cInfo) }
withAnimation { ChatModel.shared.markAllChatItemsRead(cInfo) }
}
}
if chat.chatStats.unreadChat {