equal
deleted
inserted
replaced
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); |