mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
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:
11
modules/API/external/external_api.js
vendored
11
modules/API/external/external_api.js
vendored
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user