mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
ios: fix switching to another chat prevents marking items as unread (#4652)
This commit is contained in:
parent
7c8955fcdb
commit
a4a11f99d2
2 changed files with 11 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue