naughty: Correctly notify the client when a notification is dismissed. (#3184)

Fix #3182

Co-authored-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Emmanuel Lepage Vallée 2021-03-22 00:03:37 -07:00 committed by GitHub
parent 413d47d5a5
commit 50fa1b8679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -341,6 +341,8 @@ function notif_methods.Notify(sender, object_path, interface, method, parameters
args._unique_sender = sender
notification = nnotif(args)
notification:connect_signal("destroyed", function(_, r) args.destroy(r) end)
end
invocation:return_value(GLib.Variant("(u)", { notification.id }))