From b106c20fa2e8d1aebee2afe6f94a0e31926c51e2 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 1 Feb 2024 17:21:57 -0600 Subject: [PATCH] feat: Adds indication for visitors messages to event. --- resources/prosody-plugins/mod_visitors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_visitors.lua b/resources/prosody-plugins/mod_visitors.lua index 124a5f2e23..c8ca49f78c 100644 --- a/resources/prosody-plugins/mod_visitors.lua +++ b/resources/prosody-plugins/mod_visitors.lua @@ -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;