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

fixes #1163
This commit is contained in:
Lauren N. Liberda 2023-05-14 19:17:47 +02:00
parent 77e1da8318
commit 325dcf901a
No known key found for this signature in database
GPG Key ID: 734C629FD04BD319

View File

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