refactor: Migrate routes to go router

This commit is contained in:
krille-chan 2023-08-07 18:40:02 +02:00
commit ee957ab1f6
No known key found for this signature in database
52 changed files with 584 additions and 612 deletions

View file

@ -31,7 +31,6 @@ class PublicRoomBottomSheet extends StatelessWidget {
final client = Matrix.of(context).client;
final chunk = this.chunk;
final navigator = Navigator.of(context);
final router = VRouter.of(context);
final result = await showFutureLoadingDialog<String>(
context: context,
future: () async {
@ -54,7 +53,7 @@ class PublicRoomBottomSheet extends StatelessWidget {
navigator.pop();
// don't open the room if the joined room is a space
if (!client.getRoomById(result.result!)!.isSpace) {
router.toSegments(['rooms', result.result!]);
context.go(['', 'rooms', result.result!].join('/'));
}
return;
}