feat: Adds indication for visitors messages to event.

This commit is contained in:
damencho
2024-02-01 17:21:57 -06:00
committed by Дамян Минков
parent fab61d8c32
commit b106c20fa2

View File

@@ -318,7 +318,7 @@ process_host_module(main_muc_component_config, function(host_module, host)
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; });
host_module:fire_event("muc-add-history", { room = room; stanza = stanza; from = from; visitor = true; });
-- now we need to send to rest of visitor nodes
local vnodes = visitors_nodes[room.jid].nodes;