Software /
code /
prosody-modules
Changeset
4457:091d06c7d724
mod_cloud_notify_encrypted: Fix traceback (incorrect variable name)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Feb 2021 13:45:29 +0000 |
parents | 4456:8ed1989e99f9 |
children | 4458:5234d0c8883d |
files | mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Mon Feb 22 13:11:35 2021 +0000 +++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Mon Feb 22 13:45:29 2021 +0000 @@ -105,7 +105,7 @@ local encrypted_element = st.stanza("encrypted", { xmlns = xmlns_push_encrypt, iv = base64.encode(iv) }) :text(encrypted_payload); if push_payload.type == "call" then - encrypted_payload.attr.type = "voip"; + encrypted_element.attr.type = "voip"; event.important = true; end -- Replace the unencrypted notification data with the encrypted one