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(muc_displayname): Handles few more cases for missing nick element.

damencho121aabeb25e2
diff --git a/resources/prosody-plugins/mod_muc_displayname.lua b/resources/prosody-plugins/mod_muc_displayname.lua
index 261c5f0323..34d4c6a073 100644
--- a/resources/prosody-plugins/mod_muc_displayname.lua
+++ b/resources/prosody-plugins/mod_muc_displayname.lua
@@ -100,14 +100,14 @@ module:hook('muc-add-history', function(event)
local session = sessions[occupant.jid];
if session and session.jitsi_meet_context_user then
if ignore_jwt_name then
- name = occupant:get_presence():get_child('nick', NICK_NS):get_text();
+ name = occupant:get_presence():get_child_text('nick', NICK_NS);
else
name = session.jitsi_meet_context_user.name;
end
source = 'token';
else
- name = occupant:get_presence():get_child('nick', NICK_NS):get_text();
+ name = occupant:get_presence():get_child_text('nick', NICK_NS);
source = 'guest';
end
else