Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(visitors): Fixes duplicated messages sent from guest domain.

eemehmet106452d85774
diff --git a/resources/prosody-plugins/mod_fmuc.lua b/resources/prosody-plugins/mod_fmuc.lua
index cf6f8261d8..4ed41cbf18 100644
--- a/resources/prosody-plugins/mod_fmuc.lua
+++ b/resources/prosody-plugins/mod_fmuc.lua
@@ -324,7 +324,7 @@ module:hook('muc-occupant-groupchat', function(event)
end
-- send to main participants only messages from local occupants (skip from remote vnodes)
- if occupant and occupant_host ~= main_domain then
+ if occupant and occupant_host == local_domain then
local main_message = st.clone(stanza);
main_message.attr.to = jid.join(jid.node(room.jid), muc_domain_prefix..'.'..main_domain);
-- make sure we fix the from to be the real jid