fix: linux notifications
This commit is contained in:
parent
f7990fbe21
commit
3d45f1933c
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue