refactor: Migrate routes to go router
This commit is contained in:
parent
739edde729
commit
ee957ab1f6
52 changed files with 584 additions and 612 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue