mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-03-03 14:10:39 +01:00
Merge branch 'soru/navigate-to-room' into 'main'
fix: navigate to /rooms when switching bundle Closes #566 See merge request famedly/fluffychat!527
This commit is contained in:
commit
c36b48302c
@ -419,17 +419,20 @@ class ChatListController extends State<ChatList> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void setActiveBundle(String bundle) => setState(() {
|
void setActiveBundle(String bundle) {
|
||||||
_activeSpaceId = null;
|
VRouter.of(context).to('/rooms');
|
||||||
selectedRoomIds.clear();
|
setState(() {
|
||||||
Matrix.of(context).activeBundle = bundle;
|
_activeSpaceId = null;
|
||||||
if (!Matrix.of(context)
|
selectedRoomIds.clear();
|
||||||
.currentBundle
|
Matrix.of(context).activeBundle = bundle;
|
||||||
.any((client) => client == Matrix.of(context).client)) {
|
if (!Matrix.of(context)
|
||||||
Matrix.of(context)
|
.currentBundle
|
||||||
.setActiveClient(Matrix.of(context).currentBundle.first);
|
.any((client) => client == Matrix.of(context).client)) {
|
||||||
}
|
Matrix.of(context)
|
||||||
});
|
.setActiveClient(Matrix.of(context).currentBundle.first);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void editBundlesForAccount(String userId) async {
|
void editBundlesForAccount(String userId) async {
|
||||||
final client = Matrix.of(context)
|
final client = Matrix.of(context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user