Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds comments for processing nextOnStage.

damencho955e01a750c1
diff --git a/modules/FollowMe.js b/modules/FollowMe.js
index fe62691628..8457b8e795 100644
--- a/modules/FollowMe.js
+++ b/modules/FollowMe.js
@@ -353,10 +353,13 @@ class FollowMe {
_onNextOnStage(id) {
var clickId = null;
var pin;
+ // if there is an id which is not pinned we schedule it for pin only the
+ // first time
if(typeof id !== 'undefined' && !VideoLayout.isPinned(id)) {
clickId = id;
pin = true;
}
+ // if there is no id, but we have a pinned one, let's unpin
else if (typeof id == 'undefined' && VideoLayout.getPinnedId()) {
clickId = VideoLayout.getPinnedId();
pin = false;