mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix: Fix handling visitor messages and msgs limits module.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user