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() {
|
void resetActiveSpaceId() {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
selectedRoomIds.clear();
|
||||||
activeSpaceId = null;
|
activeSpaceId = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void setActiveSpace(String? spaceId) {
|
void setActiveSpace(String? spaceId) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
selectedRoomIds.clear();
|
||||||
activeSpaceId = spaceId;
|
activeSpaceId = spaceId;
|
||||||
activeFilter = ActiveFilter.spaces;
|
activeFilter = ActiveFilter.spaces;
|
||||||
});
|
});
|
||||||
|
@ -134,6 +136,7 @@ class ChatListController extends State<ChatList>
|
||||||
|
|
||||||
void onDestinationSelected(int? i) {
|
void onDestinationSelected(int? i) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
selectedRoomIds.clear();
|
||||||
activeFilter = getActiveFilterByDestination(i);
|
activeFilter = getActiveFilterByDestination(i);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue