Merge branch 'vrouter-context' into 'main'

fix "Unhandled Exception: VRouter.of(context) was called with a context which...

Closes #1163

See merge request famedly/fluffychat!1117
This commit is contained in:
Krille 2023-05-15 16:37:51 +00:00
commit f44e24aec1

View File

@ -244,8 +244,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
bool webHasFocus = true;
String? get activeRoomId =>
VRouter.of(navigatorContext).pathParameters['roomid'];
String? get activeRoomId => navigatorContext.vRouter.pathParameters['roomid'];
final linuxNotifications =
PlatformInfos.isLinux ? NotificationsClient() : null;