ui: improve "allow PQ" button (#3932)

* ios: improve "allow PQ" button

* android
This commit is contained in:
spaced4ndy
2024-03-21 13:13:18 +04:00
committed by GitHub
parent 6d54c21774
commit a16e3eebd1
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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()
}