mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 08:25:12 +00:00
chore: Follow up select rooms
This commit is contained in:
parent
2a7744e4c7
commit
5740247c50
1 changed files with 3 additions and 0 deletions
|
@ -84,12 +84,14 @@ class ChatListController extends State<ChatList>
|
|||
|
||||
void resetActiveSpaceId() {
|
||||
setState(() {
|
||||
selectedRoomIds.clear();
|
||||
activeSpaceId = null;
|
||||
});
|
||||
}
|
||||
|
||||
void setActiveSpace(String? spaceId) {
|
||||
setState(() {
|
||||
selectedRoomIds.clear();
|
||||
activeSpaceId = spaceId;
|
||||
activeFilter = ActiveFilter.spaces;
|
||||
});
|
||||
|
@ -134,6 +136,7 @@ class ChatListController extends State<ChatList>
|
|||
|
||||
void onDestinationSelected(int? i) {
|
||||
setState(() {
|
||||
selectedRoomIds.clear();
|
||||
activeFilter = getActiveFilterByDestination(i);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue