# HG changeset patch # User Stephen Paul Weber # Date 1730477306 18000 # Node ID 9b50ee82263843cd870f90817b34b7f510281ed8 # Parent b4bf44765ce6a764b5a4df38149610b748bce01d mod_push2: fix push during smacks hibernate diff -r b4bf44765ce6 -r 9b50ee822638 mod_push2/mod_push2.lua --- a/mod_push2/mod_push2.lua Fri Nov 01 11:08:06 2024 -0500 +++ b/mod_push2/mod_push2.lua Fri Nov 01 11:08:26 2024 -0500 @@ -385,13 +385,13 @@ local function process_stanza_queue(queue, session, queue_type) if not session.push_registration_id then return; end - local user_push_services = {[session.push_registration_id] = session.push_settings}; local notified = { unimportant = false; important = false } for i=1, #queue do local stanza = queue[i]; -- fast ignore of already pushed stanzas if stanza and not (stanza._push_notify2 and stanza._push_notify2[session.push_registration_id]) then - local node = get_push_settings(stanza, session); + local node, all_push_services = get_push_settings(stanza, session) + local user_push_services = {[session.push_registration_id] = all_push_services[session.push_registration_id]} local stanza_type = "unimportant"; if is_important(stanza) then stanza_type = "important"; end if not notified[stanza_type] then -- only notify if we didn't try to push for this stanza type already