fix: Adds nil check in some util methods.

This commit is contained in:
damencho
2025-01-31 16:56:04 -06:00
committed by Дамян Минков
parent edc2328fd6
commit 532b5858c5

View File

@@ -474,12 +474,20 @@ end
-- Returns the initiator extension if the stanza is coming from a sip jigasi
function is_sip_jigasi(stanza)
if not stanza then
return false;
end
return stanza:get_child('initiator', 'http://jitsi.org/protocol/jigasi');
end
function is_transcriber_jigasi(stanza)
if not stanza then
return false;
end
local features = stanza:get_child('features');
if not features then
if not features then
return false;
end