mirror of
https://github.com/zoriya/astal.git
synced 2025-12-06 06:06:10 +00:00
lib: notifd check for valid replace ids
This commit is contained in:
@@ -124,8 +124,9 @@ internal class AstalNotifd.Daemon : Object {
|
||||
hints.remove("image_data");
|
||||
hints.remove("icon_data");
|
||||
|
||||
var id = replaces_id > 0 ? replaces_id : n_id++;
|
||||
var id = notifs.contains(replaces_id) ? replaces_id : n_id++;
|
||||
|
||||
// TODO: update existing Notification object when replaced
|
||||
var replaced = add_notification(new Notification(
|
||||
app_name, id, app_icon, summary, body, actions, hints, expire_timeout
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user