fix: Fix handling visitor messages and msgs limits module.

This commit is contained in:
damencho
2023-04-19 08:33:44 -05:00
committed by Дамян Минков
parent e169979bab
commit 1f6425fbfd
2 changed files with 6 additions and 1 deletions

View File

@@ -44,6 +44,11 @@ function on_message(event)
local session = event.origin; local session = event.origin;
if not session or not session.jitsi_web_query_room then if not session or not session.jitsi_web_query_room then
-- if this is a message from visitor, pass it through. Limits are applied in the visitor node.
if event.origin.type == 's2sin' then
return;
end
return false; return false;
end end

View File

@@ -126,7 +126,7 @@ local function stanza_handler(event)
local room = get_room_from_jid(room_jid_match_rewrite(room_jid)); local room = get_room_from_jid(room_jid_match_rewrite(room_jid));
if not room then if not room then
module:log('warn', 'No room found %s', room_jid); module:log('debug', 'No room found %s', room_jid);
return; return;
end end