mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 20:36:19 +00:00
ui: improve "allow PQ" button (#3932)
* ios: improve "allow PQ" button * android
This commit is contained in:
@@ -579,7 +579,7 @@ struct ChatInfoView: View {
|
||||
let ct = try await apiSetContactPQ(contact.apiId, true)
|
||||
contact = ct
|
||||
await MainActor.run {
|
||||
chatModel.updateContact(contact)
|
||||
chatModel.updateContact(ct)
|
||||
dismiss()
|
||||
}
|
||||
} catch let error {
|
||||
|
||||
@@ -145,7 +145,7 @@ fun ChatInfoView(
|
||||
withBGApi {
|
||||
val ct = chatModel.controller.apiSetContactPQ(chatRh, contact.contactId, true)
|
||||
if (ct != null) {
|
||||
chatModel.updateContact(chatRh, contact)
|
||||
chatModel.updateContact(chatRh, ct)
|
||||
}
|
||||
close.invoke()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user