mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
fix: linux notifications
This commit is contained in:
parent
dada8bc4dc
commit
1390570e66
@ -257,12 +257,14 @@ class MatrixState extends State<Matrix> 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user