Bläddra i källkod

fix(prosody): Fixes jibri util check to support occupant and jid.

factor2
damencho 8 månader sedan
förälder
incheckning
1c04f974d8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua Visa fil

@@ -532,7 +532,7 @@ function is_sip_jibri_join(stanza)
532 532
 end
533 533
 
534 534
 function is_jibri(occupant)
535
-    return starts_with_one_of(occupant.jid, RECORDER_PREFIXES)
535
+    return starts_with_one_of(type(occupant) == "string" and occupant or occupant.jid, RECORDER_PREFIXES)
536 536
 end
537 537
 
538 538
 -- process a host module directly if loaded or hooks to wait for its load

Laddar…
Avbryt
Spara