fix: use vrouter.toSegments

This commit is contained in:
Sorunome 2021-08-15 13:26:16 +02:00
commit 02e57474fe
22 changed files with 47 additions and 38 deletions

View file

@ -60,7 +60,7 @@ class ChatListController extends State<ChatList> {
void editSpace(BuildContext context, String spaceId) async {
Scaffold.of(context).openEndDrawer();
await Matrix.of(context).client.getRoomById(spaceId).postLoad();
VRouter.of(context).to('/spaces/$spaceId');
VRouter.of(context).toSegments(['spaces', spaceId]);
}
List<Room> get spaces =>