Changeset

6311:27bb0bc3f4b5

mod_push2: always push voip notifications Even during grace period
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Tue, 24 Jun 2025 12:13:27 -0500
parents 6310:30adcea825c3
children 6312:2488254c1bc2
files mod_push2/mod_push2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_push2/mod_push2.lua	Wed Jun 18 14:28:38 2025 +0200
+++ b/mod_push2/mod_push2.lua	Tue Jun 24 12:13:27 2025 -0500
@@ -381,7 +381,7 @@
 				to_host = to_host or module.host
 
 				-- If another session has recent activity within configured grace period, don't send push
-				if does_match and match.grace and to_host == module.host and host_sessions[to_user] then
+				if does_match and match.grace and not is_voip(stanza) and to_host == module.host and host_sessions[to_user] then
 					local now = os_time()
 					for _, session in pairs(host_sessions[to_user].sessions) do
 						if session.last_activity and session.push_registration_id ~= push_registration_id and (now - session.last_activity) < match.grace then