Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! TW-613: Update icon and title when…
Browse files Browse the repository at this point in the history
… select multi
  • Loading branch information
nqhhdev committed Sep 22, 2023
1 parent d4ba7a5 commit 9c7e0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,16 @@ class ChatListController extends State<ChatList>
void toggleSelectMode() {
selectModeNotifier.value =
isSelectMode ? SelectMode.normal : SelectMode.select;
_handleClearSelectionItem();
_clearSelectionItem();
}

void _handleClearSelectionItem() {
void _clearSelectionItem() {
conversationSelectionNotifier.value = [];
}

void onClickClearSelection() {
if (conversationSelectionNotifier.value.isNotEmpty) {
_handleClearSelectionItem();
_clearSelectionItem();
} else {
toggleSelectMode();
}
Expand Down

0 comments on commit 9c7e0a0

Please sign in to comment.