Explorar el Código

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

factor2
damencho hace 8 meses
padre
commit
1c04f974d8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua Ver fichero

@@ -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

Loading…
Cancelar
Guardar