Software /
code /
prosody-modules
Comparison
mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua @ 5055:3b609eaf0db5
mod_cloud_notify_encrypted: Add debug logging when successfully encrypted
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 24 Sep 2022 08:00:55 +0100 |
parent | 5054:62480053c87b |
comparison
equal
deleted
inserted
replaced
5054:62480053c87b | 5055:3b609eaf0db5 |
---|---|
138 end | 138 end |
139 -- Replace the unencrypted notification data with the encrypted one | 139 -- Replace the unencrypted notification data with the encrypted one |
140 event.notification_payload | 140 event.notification_payload |
141 :remove_children("x", "jabber:x:data") | 141 :remove_children("x", "jabber:x:data") |
142 :add_child(encrypted_element); | 142 :add_child(encrypted_element); |
143 | |
144 module:log("debug", "Encrypted '%s' push notification using %s", push_payload.type, encryption.algorithm); | |
143 end | 145 end |
144 | 146 |
145 module:hook("cloud_notify/registration", handle_register); | 147 module:hook("cloud_notify/registration", handle_register); |
146 module:hook("cloud_notify/push", handle_push, 1); | 148 module:hook("cloud_notify/push", handle_push, 1); |