# HG changeset patch # User Stephen Paul Weber # Date 1708906230 18000 # Node ID 83ee752f148cd8940f6ddf2c2055fde1263617f6 # Parent 37e38ee534ea2d39878ed2df6455d53f1e9a1ce9 mod_push2: empty table instead of nil when not present diff -r 37e38ee534ea -r 83ee752f148c mod_push2/mod_push2.lua --- 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