Mercurial > prosody-modules
diff mod_cloud_notify/mod_cloud_notify.lua @ 4328:5a30daf2ac02
mod_cloud_notify: Include 'important' flag in push event data
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 13 Jan 2021 14:09:18 +0000 |
| parents | 9b95241c6ae5 |
| children | 7a5ca4b285cb |
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua Tue Jan 12 15:43:26 2021 +0000 +++ b/mod_cloud_notify/mod_cloud_notify.lua Wed Jan 13 14:09:18 2021 +0000 @@ -359,6 +359,7 @@ node = node; push_info = push_info; push_summary = form_data; + important = not not form_data["last-message-body"]; }; if module:fire_event("cloud_notify/push", push_event) then
