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): guard is_focus against nil nick

damenchofc582405dc49
diff --git a/resources/prosody-plugins/util.lib.lua b/resources/prosody-plugins/util.lib.lua
index 4bdb265d1f..254d9d498c 100644
--- a/resources/prosody-plugins/util.lib.lua
+++ b/resources/prosody-plugins/util.lib.lua
@@ -362,6 +362,9 @@ end
-- @param nick the full occupant nick (resource part of the MUC JID)
-- @return boolean
function is_focus(nick)
+ if nick == nil then
+ return false;
+ end
return string.sub(nick, -string.len("/focus")) == "/focus";
end