ios: fix switching to another chat prevents marking items as unread (#4652)

This commit is contained in:
Evgeny 2024-08-11 07:18:01 +01:00 committed by GitHub
parent 7c8955fcdb
commit a4a11f99d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -910,6 +910,12 @@ final class Chat: ObservableObject, Identifiable, ChatLike {
chatStats: chatStats ?? self.chatStats
)
}
func copyFrom(_ c: Chat) {
self.chatInfo = c.chatInfo
self.chatItems = c.chatItems
self.chatStats = c.chatStats
}
var userCanSend: Bool {
switch chatInfo {