diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index a48c44775b..10fa9d7132 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -210,6 +210,9 @@ class ChatListController extends State if (conversation != null && conversation.isSelected) { tempConversationSelectionPresentation.remove(conversation); + if (tempConversationSelectionPresentation.isEmpty) { + toggleSelectMode(); + } } else { tempConversationSelectionPresentation.add( ConversationSelectionPresentation( @@ -239,11 +242,7 @@ class ChatListController extends State } void onClickClearSelection() { - if (conversationSelectionNotifier.value.isNotEmpty) { - _clearSelectionItem(); - } else { - toggleSelectMode(); - } + toggleSelectMode(); } void resetActiveSpaceId() {