naughty: Initialize the action `notification` property

This commit is contained in:
Emmanuel Lepage Vallee 2019-03-04 22:48:21 -05:00
parent 4be58fb298
commit d956b5411b
1 changed files with 6 additions and 0 deletions

View File

@ -530,6 +530,12 @@ local function create(args)
-- using the shorthand `if #notif.actions > 0 then`
private.actions = private.actions or {}
-- Make sure the action are for this notification. Sharing actions with
-- multiple notification is not supported.
for _, a in ipairs(private.actions) do
a.notification = n
end
-- It's an automatic property
n.is_expired = false