forked from cwtch.im/cwtch-ui
Stub Notifications for Group Messages Linux
This commit is contained in:
parent
432b670e0f
commit
c9c580c9da
|
@ -131,6 +131,7 @@ class CwtchNotifier {
|
|||
}
|
||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["GroupID"])!.totalMessages++;
|
||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.updateLastMessageTime(data["GroupID"], DateTime.now());
|
||||
notificationManager.notify("New Message From Group!");
|
||||
} else {
|
||||
// from me (already displayed - do not update counter)
|
||||
var idx = data["Signature"];
|
||||
|
|
|
@ -20,6 +20,6 @@ class LinuxNotificationsManager implements NotificationsManager {
|
|||
LinuxNotificationsManager() {}
|
||||
Future<void> notify(String message) async {
|
||||
var icon_path = Uri.file(path.join(path.current, "cwtch.png"));
|
||||
client.notify('New Message from Peer!', appName: "cwtch", appIcon: icon_path.toString(), replacesId: this.previous_id).then((Notification value) => previous_id = value.id);
|
||||
client.notify(message, appName: "cwtch", appIcon: icon_path.toString(), replacesId: this.previous_id).then((Notification value) => previous_id = value.id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue