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(prosody): Fixes jibri util check to support occupant and jid.

damencho1c04f974d8da
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index 3e6cecb270..943d724d8b 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -532,7 +532,7 @@ function is_sip_jibri_join(stanza)
end
function is_jibri(occupant)
- return starts_with_one_of(occupant.jid, RECORDER_PREFIXES)
+ return starts_with_one_of(type(occupant) == "string" and occupant or occupant.jid, RECORDER_PREFIXES)
end
-- process a host module directly if loaded or hooks to wait for its load