From 1390570e66e3fd7d2870b31e0fab37c2b0363522 Mon Sep 17 00:00:00 2001 From: Raatty Date: Fri, 24 Dec 2021 22:48:45 +1300 Subject: [PATCH] fix: linux notifications --- lib/widgets/matrix.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 6950e233..8ab087ae 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -257,12 +257,14 @@ class MatrixState extends State with WidgetsBindingObserver { icon: icon.toString(), ); } else if (Platform.isLinux) { - await linuxNotifications.notify( + final notification = await linuxNotifications.notify( title, body: body, - replacesId: _linuxNotificationIds[roomId] ?? -1, + replacesId: _linuxNotificationIds[roomId] ?? 0, appName: AppConfig.applicationName, + appIcon: "im.fluffychat.Fluffychat", ); + _linuxNotificationIds[roomId] = notification.id; } }