Skip to content

Commit

Permalink
chore: Follow up pop space view
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Jul 18, 2024
1 parent 956a2e6 commit 754870e
Show file tree
Hide file tree
Showing 2 changed files with 275 additions and 275 deletions.
7 changes: 6 additions & 1 deletion lib/pages/chat_list/chat_list_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ class ChatListView extends StatelessWidget {
final selectMode = controller.selectMode;
return PopScope(
canPop: controller.selectMode == SelectMode.normal &&
!controller.isSearchMode,
!controller.isSearchMode &&
controller.activeSpaceId == null,
onPopInvoked: (pop) {
if (pop) return;
if (controller.activeSpaceId != null) {
controller.clearActiveSpace();
return;
}
final selMode = controller.selectMode;
if (controller.isSearchMode) {
controller.cancelSearch();
Expand Down
Loading

0 comments on commit 754870e

Please sign in to comment.