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

fixes #1163
krille/new-error-reporter
Lauren N. Liberda 2 years ago
parent ab1e2d8db8
commit 21244ea8b4

@ -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;

Loading…
Cancel
Save