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: Updates token verification hooks priority. (#11105)

Дамян Минков14cad060cb80
diff --git a/resources/prosody-plugins/mod_token_verification.lua b/resources/prosody-plugins/mod_token_verification.lua
index 0611b07c5e..6f0b4f600d 100644
--- a/resources/prosody-plugins/mod_token_verification.lua
+++ b/resources/prosody-plugins/mod_token_verification.lua
@@ -78,7 +78,7 @@ module:hook("muc-room-pre-create", function(event)
if not verify_user(origin, stanza) then
return true; -- Returning any value other than nil will halt processing of the event
end
-end);
+end, 99);
module:hook("muc-occupant-pre-join", function(event)
local origin, room, stanza = event.origin, event.room, event.stanza;
@@ -86,7 +86,7 @@ module:hook("muc-occupant-pre-join", function(event)
if not verify_user(origin, stanza) then
return true; -- Returning any value other than nil will halt processing of the event
end
-end);
+end, 99);
for event_name, method in pairs {
-- Normal room interactions