From 4b8fe976f17079fde7fefb20f874082cad7a8cb6 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Tue, 24 Oct 2023 15:12:14 -0400 Subject: [PATCH] Go to All Spaces view after clicking spaces button in navigation rail --- lib/pages/chat_list/chat_list.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 955d4bf90..e7de171f7 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -149,6 +149,13 @@ class ChatListController extends State // Pangea# activeFilter = getActiveFilterByDestination(i); }); + // #Pangea + final bool clickedAllSpaces = (!AppConfig.separateChatTypes && i == 1) || + (AppConfig.separateChatTypes && i == 2); + if (clickedAllSpaces) { + setActiveSpace(null); + } + // Pangea# } ActiveFilter activeFilter = AppConfig.separateChatTypes