fix: Crash on start

This commit is contained in:
Christian Pauly 2021-05-01 15:42:23 +02:00
parent 83c066b387
commit 16febd3c34

View File

@ -211,7 +211,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
}
}
final linuxNotifications = NotificationsClient();
final linuxNotifications =
PlatformInfos.isLinux ? NotificationsClient() : null;
final Map<String, int> _linuxNotificationIds = {};
@override