Skip to content

Commit

Permalink
feat(visitors): Adds an option to request to be visitor.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho authored and subhamcyara committed Jul 19, 2024
1 parent 53a8608 commit d0d0b2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/xmpp/moderator.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export default class Moderator extends Listenable {

if (FeatureFlags.isJoinAsVisitorSupported() && !config.iAmRecorder && !config.iAmSipGateway) {
conferenceRequest.properties['visitors-version'] = 1;

if (this.options.preferVisitor) {
conferenceRequest.properties.visitor = true;
}
}

return conferenceRequest;
Expand Down

0 comments on commit d0d0b2a

Please sign in to comment.