# HG changeset patch # User Matthew Wild # Date 1610547338 0 # Node ID 2a51641627083a69e66e34868c7425bdd897859c # Parent 5a30daf2ac027555a07f41f4a2ce001b9e685bcb mod_cloud_notify_encrypted: Fix the location of the element in push registrations diff -r 5a30daf2ac02 -r 2a5164162708 mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua --- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Wed Jan 13 14:09:18 2021 +0000 +++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Wed Jan 13 14:15:38 2021 +0000 @@ -18,7 +18,7 @@ module:hook("account-disco-info", account_disco_info); function handle_register(event) - local encrypt = event.stanza:get_child("encrypt", xmlns_push_encrypt); + local encrypt = event.stanza:get_child("enable", xmlns_push):get_child("encrypt", xmlns_push_encrypt); if not encrypt then return; end local algorithm = encrypt.attr.alg;