--- a/mod_cloud_notify/mod_cloud_notify.lua Sun Oct 17 23:25:25 2021 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua Mon Oct 18 11:43:48 2021 +0100
@@ -404,7 +404,7 @@
end, 1);
-- publish on bare groupchat
--- this picks up MUC messages when there are no devices connected
+-- this picks up MUC messages when there are no devices connected
module:hook("message/bare/groupchat", function(event)
module:log("debug", "Invoking cloud handle_notify_request() for bare groupchat stanza");
local node, user_push_services = get_push_settings(event.stanza, event.origin);
@@ -505,9 +505,9 @@
if not session.push_identifier then return; end
if stanza then process_stanza(session, stanza); return; end -- don't iterate through smacks queue if we know which stanza triggered this
for i=1, #queue do
- local stanza = queue[i];
+ local queued_stanza = queue[i];
-- process unacked stanzas (handle_notify_request() will only send push requests for new stanzas)
- process_stanza(session, stanza);
+ process_stanza(session, queued_stanza);
end
end