mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-13 07:36:10 +00:00
modify
This commit is contained in:
@@ -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