2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-05-03 00:07:24 +02:00

Merge branch 'fix_linux_notifications' into 'main'

fix: linux notifications

Closes 

See merge request 
This commit is contained in:
Krille Fear 2021-12-24 12:40:53 +00:00
commit e33aff1faf

@ -257,12 +257,14 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
icon: icon.toString(), icon: icon.toString(),
); );
} else if (Platform.isLinux) { } else if (Platform.isLinux) {
await linuxNotifications.notify( final notification = await linuxNotifications.notify(
title, title,
body: body, body: body,
replacesId: _linuxNotificationIds[roomId] ?? -1, replacesId: _linuxNotificationIds[roomId] ?? 0,
appName: AppConfig.applicationName, appName: AppConfig.applicationName,
appIcon: "im.fluffychat.Fluffychat",
); );
_linuxNotificationIds[roomId] = notification.id;
} }
} }