From 9ea6b4d595e590089ce0154848d7a4517fac746d Mon Sep 17 00:00:00 2001 From: Diogo Date: Fri, 30 Aug 2024 14:52:09 +0100 Subject: [PATCH] picker should now open for single user --- .../kotlin/chat/simplex/common/views/chatlist/ChatListView.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt index bddb8dda74..88d6330d1e 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt @@ -357,11 +357,7 @@ private fun ChatListToolbar(drawerState: DrawerState, userPickerState: MutableSt .filter { u -> !u.user.activeUser && !u.user.hidden } .all { u -> u.unreadCount == 0 } UserProfileButton(chatModel.currentUser.value?.profile?.image, allRead) { - if (users.size == 1 && chatModel.remoteHosts.isEmpty()) { - scope.launch { drawerState.open() } - } else { userPickerState.value = AnimatedViewState.VISIBLE - } } } },