diff options
author | Aylur <[email protected]> | 2024-09-09 01:01:48 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-09 01:01:48 +0000 |
commit | 77612285d31ad6df5fe019c77f3007ef2e186a49 (patch) | |
tree | 3f0686d5c9a2c504778de823224427f4ae23c634 /lib | |
parent | 69866935f12150d54e42009b29124245659d8a53 (diff) |
lib: notifd check for valid replace ids
Diffstat (limited to 'lib')
-rw-r--r-- | lib/notifd/daemon.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/notifd/daemon.vala b/lib/notifd/daemon.vala index b8fb598..e918201 100644 --- a/lib/notifd/daemon.vala +++ b/lib/notifd/daemon.vala @@ -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 )); |