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(prosody): Updates client permissions on granting owner rights.
damencho6f3ae47a2e31
diff --git a/resources/prosody-plugins/mod_jitsi_permissions.lua b/resources/prosody-plugins/mod_jitsi_permissions.luaindex 2b1a7d0c32..7a761ffd95 100644--- a/resources/prosody-plugins/mod_jitsi_permissions.lua+++ b/resources/prosody-plugins/mod_jitsi_permissions.lua@@ -177,6 +177,9 @@ function filter_stanza(stanza, session)end-- we need to indicate that we will send permissions if we need to+-- we need to handle granted features and stuff in the pre-set hook so they are unavailable+-- when the self presence is set, so we can update the client, the checks+-- whether the actor is allowed to set the affiliation are done before pre-set hook is firedmodule:hook('muc-pre-set-affiliation', function(event)local jid, room = event.jid, event.room;@@ -184,8 +187,9 @@ module:hook('muc-pre-set-affiliation', function(event)room.send_default_permissions_to = {};endroom.send_default_permissions_to[jid] = true;++ process_set_affiliation(event);end);-module:hook('muc-set-affiliation', process_set_affiliation);function filter_session(session)-- domain mapper is filtering on default priority 0