# HG changeset patch # User Matthew Wild # Date 1614001529 0 # Node ID 091d06c7d72438331c716746424223620d2efe1b # Parent 8ed1989e99f95f3b931b9a6a1c17cd6e902e5a2f mod_cloud_notify_encrypted: Fix traceback (incorrect variable name) diff -r 8ed1989e99f9 -r 091d06c7d724 mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua --- 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