fix: Crash on start

This commit is contained in:
Christian Pauly 2021-05-01 15:42:23 +02:00
parent b5a165004d
commit f576951ebe

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