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: Adds visitor messages to the room history.

damenchofcf723c679ff
diff --git a/resources/prosody-plugins/mod_visitors.lua b/resources/prosody-plugins/mod_visitors.lua
index 242567a830..8c777f42db 100644
--- a/resources/prosody-plugins/mod_visitors.lua
+++ b/resources/prosody-plugins/mod_visitors.lua
@@ -311,6 +311,8 @@ process_host_module(main_muc_component_config, function(host_module, host)
-- send it to the nick to be able to route it to the room (ljm multiple rooms) from unknown occupant
room:route_to_occupant(o, stanza);
end
+ -- let's add the message to the history of the room
+ host_module:fire_event("muc-add-history", { room = room; stanza = stanza; });
-- now we need to send to rest of visitor nodes
local vnodes = visitors_nodes[room.jid].nodes;