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
4 changed files with 27 additions and 66 deletions
+1 -1
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 {