In jitsi-meet's default config.js the following line is present:
//focusUserJid: 'firstname.lastname@example.org', // The real JID
of focus participant - can be overridden here
However if the JID is changed to something else, such as
'email@example.com' the following error occurs in the web client
after the user joins the conference:
function () - error - TypeError: remoteVideos[resourceJid] is
Also, the large video area does not show the user's video on joining the
conference. Nor is the user granted moderator privileges.
It appears that in two places client code extracts the first part of the
JID and compares it to the literal string 'focus'.
Updating modules/UI/videolayout/VideoLayout.js to use member.isFocus
instead of doing a string comparison causes the error to go away, the
video to show on joining, and the user to be granted moderator
(The other spot is modules/xmpp/moderator.js, in this case it didn't
seem as obvious how to fix it).
Should I submit a pull request of the above commit?