Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Skip flip processing for password when there is no room password.
damenchod2b4043c7f29
diff --git a/resources/prosody-plugins/mod_muc_flip.lua b/resources/prosody-plugins/mod_muc_flip.luaindex 628528a2ac..e59cfaae68 100644--- a/resources/prosody-plugins/mod_muc_flip.lua+++ b/resources/prosody-plugins/mod_muc_flip.lua@@ -65,24 +65,27 @@ module:hook("muc-occupant-pre-join", function(event)room:set_affiliation(true, jid_bare(occupant_jid), "member")room:save_occupant(occupant);end- -- bypass password on the flip device- local join = stanza:get_child("x", MUC_NS);- if not join then- join = stanza:tag("x", { xmlns = MUC_NS });- end- local password = join:get_child("password", MUC_NS);- if password then- join:maptags(- function(tag)- for k, v in pairs(tag) do- if k == "name" and v == "password" then- return nil++ if room:get_password() then+ -- bypass password on the flip device+ local join = stanza:get_child("x", MUC_NS);+ if not join then+ join = stanza:tag("x", { xmlns = MUC_NS });+ end+ local password = join:get_child("password", MUC_NS);+ if password then+ join:maptags(+ function(tag)+ for k, v in pairs(tag) do+ if k == "name" and v == "password" then+ return nil+ endend- end- return tag- end);+ return tag+ end);+ end+ join:tag("password", { xmlns = MUC_NS }):text(room:get_password());end- join:tag("password", { xmlns = MUC_NS }):text(room:get_password());elseif not session.jitsi_meet_context_features.flip or session.jitsi_meet_context_features.flip == false or session.jitsi_meet_context_features.flip == "false" thenmodule:log("warn", "Flip device tag present without jwt permission")--remove flip_device tag if somebody wants to abuse this feature