call context.go to rooms when clearing active space (#1093)

This commit is contained in:
ggurdin 2024-11-22 13:22:24 -05:00 committed by GitHub
parent 4c9cd60e95
commit 472f924304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -127,9 +127,17 @@ class ChatListController extends State<ChatList>
// Pangea#
}
void clearActiveSpace() => setState(() {
_activeSpaceId = null;
});
// #Pangea
// void clearActiveSpace() => setState(() {
// _activeSpaceId = null;
// });
void clearActiveSpace() {
setState(() {
_activeSpaceId = null;
});
context.go("/rooms");
}
// Pangea#
void onChatTap(Room room) async {
if (room.membership == Membership.invite) {

View file

@ -1481,7 +1481,7 @@ packages:
description:
path: "."
ref: main
resolved-ref: "59895c358743fa23d8b52a61a8ec9755139951f8"
resolved-ref: cbba79b42dba2a6f5b17880a95906a2602b9a0ff
url: "https://github.com/pangeachat/matrix-dart-sdk.git"
source: git
version: "0.32.4"