From a16e3eebd10dbaf2acce1bb39979cd295f620083 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:13:18 +0400 Subject: [PATCH] ui: improve "allow PQ" button (#3932) * ios: improve "allow PQ" button * android --- apps/ios/Shared/Views/Chat/ChatInfoView.swift | 2 +- .../kotlin/chat/simplex/common/views/chat/ChatInfoView.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ChatInfoView.swift b/apps/ios/Shared/Views/Chat/ChatInfoView.swift index 86532605db..8b60fc7649 100644 --- a/apps/ios/Shared/Views/Chat/ChatInfoView.swift +++ b/apps/ios/Shared/Views/Chat/ChatInfoView.swift @@ -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 { diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatInfoView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatInfoView.kt index 9f526f3eb8..42257cf723 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatInfoView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatInfoView.kt @@ -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() }