mod_push2/mod_push2.lua
changeset 5849 83ee752f148c
parent 5668 4b052598e435
--- a/mod_push2/mod_push2.lua	Sun Feb 25 15:28:45 2024 +0000
+++ b/mod_push2/mod_push2.lua	Sun Feb 25 19:10:30 2024 -0500
@@ -536,7 +536,7 @@
 
 	-- only notify if the stanza destination is the mam user we store it for
 	if event.for_user == to then
-		local user_push_services = push2_registrations:get(to)
+		local user_push_services = push2_registrations:get(to) or {}
 
 		-- Urgent stanzas are time-sensitive (e.g. calls) and should
 		-- be pushed immediately to avoid getting stuck in the smacks