From 75101ac8857bccae21e4efe349c94591ec33a61e Mon Sep 17 00:00:00 2001 From: Diogo Date: Tue, 6 Aug 2024 21:58:31 +0100 Subject: [PATCH] desktop: dismiss chat sheet when contact connects while qrcode is open (#4607) --- .../commonMain/kotlin/chat/simplex/common/model/ChatModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt index 4211ebd4b7..9259a2bca9 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/ChatModel.kt @@ -671,6 +671,7 @@ object ChatModel { showingInvitation.value = null chatModel.chatItems.clear() chatModel.chatId.value = withId + ModalManager.start.closeModals() ModalManager.end.closeModals() } } @@ -681,6 +682,7 @@ object ChatModel { chatModel.chatItems.clear() chatModel.chatId.value = null // Close NewChatView + ModalManager.start.closeModals() ModalManager.center.closeModals() ModalManager.end.closeModals() }