feat(always-on-top): Updates buttons for visitors. (#15369)

* feat(always-on-top): Updates buttons for visitors.

* squash: rename listener.

* squash: Adds visitor to the conference joined event.

* squash: fix comments and lint.

* squash: fix comments.
This commit is contained in:
Дамян Минков
2024-12-06 12:28:29 -06:00
committed by GitHub
parent 3834f1e99c
commit f85d0e6469
4 changed files with 99 additions and 5 deletions

View File

@@ -398,6 +398,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
this._participants = {};
this._myUserID = undefined;
this._onStageParticipant = undefined;
this._iAmvisitor = undefined;
this._setupListeners();
id++;
}
@@ -619,6 +620,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
email: data.email,
avatarURL: data.avatarURL
};
this._iAmvisitor = data.visitor;
}
// eslint-disable-next-line no-fallthrough
@@ -1168,6 +1170,15 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
});
}
/**
* Returns whether we have joined as visitor in a meeting.
*
* @returns {boolean} - Returns true if we have joined as visitor.
*/
isVisitor() {
return this._iAmvisitor;
}
/**
* Returns the avatar URL of a participant.
*