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: Drops not needed default values when filtering.

damencho2b7299ae053e
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index 211f013098..35deb9b067 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -692,19 +692,16 @@ local function filter_identity_from_presence(orig_stanza)
stanza:remove_children('nick', 'http://jabber.org/protocol/nick');
stanza:remove_children('email');
stanza:remove_children('stats-id');
- stanza:tag('email'):text('[email protected]'):up();
local identity = stanza:get_child('identity');
if identity then
local user = identity:get_child('user');
local name = identity:get_child('name');
if user then
user:remove_children('email');
- user:tag('email'):text('[email protected]'):up();
user:remove_children('name');
end
if name then
name:remove_children('name'); -- Remove name with no namespace
- name:tag('name'):text('Guest'):up(); -- Add new name with guest value
end
end