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 hideDisplayNameForAll.

damencho599c88a71d2f
diff --git a/resources/prosody-plugins/README.md b/resources/prosody-plugins/README.md
index 9ceaeb2bf6..f9feed9664 100644
--- a/resources/prosody-plugins/README.md
+++ b/resources/prosody-plugins/README.md
@@ -6,7 +6,6 @@
- breakout_rooms_active - Whether there was a breakout room created in the main room.
- breakout_rooms_counter - A counter for breakout rooms created in the main room.
- flip_participant_nick - Used in mod_muc_flip, when flipping a participant we store the nick of the second device/participant. Same processing as kicked_participant_nick.
-- hideDisplayNameForAll - TODO: drop.
- hideDisplayNameForGuests - When set to true, the display name of participants is hidden for guests.
- jicofo_lock - A boolean value, when set to true the room is locked waiting for Jicofo to join. All attempts to join will be queued until Jicofo joins.
- kicked_participant_nick - Used in mod_muc_flip, when flipping a participant we store the nick of the initial device/participant so we can kick it after the second on joins, everything happens in the same pass when the second join presence is processed, so concurrency and overwriting are not a concern.
diff --git a/resources/prosody-plugins/mod_muc_displayname.lua b/resources/prosody-plugins/mod_muc_displayname.lua
index a881329b0c..288a459cd0 100644
--- a/resources/prosody-plugins/mod_muc_displayname.lua
+++ b/resources/prosody-plugins/mod_muc_displayname.lua
@@ -1,5 +1,5 @@
--- This module removes identity information from presence stanzas when the
---- hideDisplayNameForAll or hideDisplayNameForGuests options are enabled
+--- hideDisplayNameForGuests options are enabled
--- for a room.
--- To be enabled under the main muc component
@@ -27,12 +27,11 @@ function filter_stanza_out(stanza, session)
local room = get_room_by_name_and_subdomain(session.jitsi_web_query_room, session.jitsi_web_query_prefix);
local shouldFilter = false;
- if room and (room._data.hideDisplayNameForGuests == true or room._data.hideDisplayNameForAll == true) then
+ if room and room._data.hideDisplayNameForGuests == true then
local occupant = room:get_occupant_by_real_jid(stanza.attr.to);
-- don't touch self-presence
if occupant and stanza.attr.from ~= internal_room_jid_match_rewrite(occupant.nick) then
- local isModerator = (occupant.role == 'moderator' or joining_moderator_participants[occupant.bare_jid]);
- shouldFilter = room._data.hideDisplayNameForAll or not isModerator;
+ shouldFilter = occupant.role ~= 'moderator' and not joining_moderator_participants[occupant.bare_jid];
end
end
diff --git a/resources/prosody-plugins/mod_visitors.lua b/resources/prosody-plugins/mod_visitors.lua
index 1507ee6819..b22e3bbbbf 100644
--- a/resources/prosody-plugins/mod_visitors.lua
+++ b/resources/prosody-plugins/mod_visitors.lua
@@ -110,7 +110,7 @@ local function filter_stanza_nick_if_needed(stanza, room)
end
-- if hideDisplayNameForGuests we want to drop any display name from the presence stanza
- if room and (room._data.hideDisplayNameForGuests or room._data.hideDisplayNameForAll) then
+ if room and room._data.hideDisplayNameForGuests then
return filter_identity_from_presence(stanza);
end