mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua
changeset 4461 091d06c7d724
parent 4460 8ed1989e99f9
child 4469 2a7a76712e71
--- 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