picker should now open for single user

This commit is contained in:
Diogo
2024-08-30 14:52:09 +01:00
parent 019e1e1653
commit 9ea6b4d595
@@ -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
}
}
}
},