From 2bea94fe0dabcc2845b7b8f03b79834a7e5af996 Mon Sep 17 00:00:00 2001 From: Diogo Date: Thu, 5 Sep 2024 12:49:19 +0100 Subject: [PATCH] fix profile creation in desktop --- .../simplex/common/views/usersettings/UserProfilesView.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt index d2c2d95c2c..482b5ed488 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/usersettings/UserProfilesView.kt @@ -51,13 +51,6 @@ fun UserProfilesView(m: ChatModel, search: MutableState, profileHidden: addUser = { ModalManager.center.showModalCloseable { close -> CreateProfile(m, close) - if (appPlatform.isDesktop) { - // Hide settings to allow clicks to pass through to CreateProfile view - DisposableEffectOnGone(always = { scope.launch { close.invoke() } }) { - // Show settings again to allow intercept clicks to close modals after profile creation finishes - //scope.launch(NonCancellable) { drawerState.open() } - } - } } }, activateUser = { user ->