mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-12-03 22:24:41 +00:00
modify
This commit is contained in:
1 parent
4a31dcd319
commit
fc811bbb84
1 file changed
+6
-5
@@ -305,13 +305,14 @@ struct ChatView: View {
|
||||
do {
|
||||
let (stats, _) = try await apiContactInfo(chat.chatInfo.apiId)
|
||||
await MainActor.run {
|
||||
var updatedContact = contact
|
||||
if contact.chatDeleted {
|
||||
updatedContact.chatDeleted = false
|
||||
}
|
||||
if let s = stats {
|
||||
var updatedContact = contact
|
||||
if contact.chatDeleted {
|
||||
updatedContact.chatDeleted = false
|
||||
}
|
||||
|
||||
chatModel.updateContactConnectionStats(updatedContact, s)
|
||||
} else if contact.chatDeleted {
|
||||
chatModel.updateContact(updatedContact)
|
||||
}
|
||||
}
|
||||
} catch let error {
|
||||
|
||||
Reference in new issue
Block a user