Software / code / prosody-modules
Comparison
mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua @ 5952:2b80188448d1
mod_cloud_notify_encrypted: Add runtime dependency on mod_cloud_notify
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 19 Jun 2024 16:54:52 +0100 |
| parent | 5055:3b609eaf0db5 |
| child | 6220:c83bfcc6ac0a |
comparison
equal
deleted
inserted
replaced
| 5951:87441b567277 | 5952:2b80188448d1 |
|---|---|
| 142 :add_child(encrypted_element); | 142 :add_child(encrypted_element); |
| 143 | 143 |
| 144 module:log("debug", "Encrypted '%s' push notification using %s", push_payload.type, encryption.algorithm); | 144 module:log("debug", "Encrypted '%s' push notification using %s", push_payload.type, encryption.algorithm); |
| 145 end | 145 end |
| 146 | 146 |
| 147 module:depends("cloud_notify"); | |
| 147 module:hook("cloud_notify/registration", handle_register); | 148 module:hook("cloud_notify/registration", handle_register); |
| 148 module:hook("cloud_notify/push", handle_push, 1); | 149 module:hook("cloud_notify/push", handle_push, 1); |