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: Filters stanza on cloned copy.

damencho4b50f13e96c8
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index 1b61b7dc7c..211f013098 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -686,7 +686,9 @@ local function is_admin(_jid)
end
-- Filter out identity information (nick name, email, etc) from a presence stanza.
-local function filter_identity_from_presence(stanza)
+local function filter_identity_from_presence(orig_stanza)
+ local stanza = st.clone(orig_stanza);
+
stanza:remove_children('nick', 'http://jabber.org/protocol/nick');
stanza:remove_children('email');
stanza:remove_children('stats-id');