Skip to content

Commit

Permalink
feat: added visitor chat visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TCHDORUK committed Jun 3, 2024
1 parent ad12d08 commit 200b9b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/xmpp/ChatRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,12 @@ export default class ChatRoom extends Listenable {

const autoRecordingWithoutAction = $(result).find('>query>feature[var="auto_recording_without_action"]').length === 1;

const visitorChat = $(result).find('>query>feature[var="visitor_chat"]').length === 1;

this.eventEmitter.emit(XMPPEvents.MUC_ROOM_VISIBILITY_CHANGED,
specialRoom, roomOwner, externalScheduled, coHost, autoRecording,
disableMuteOthers, whiteListEnabled, disableParticipantChat,
liveStreamEnable, autoRecordingWithoutAction);
liveStreamEnable, autoRecordingWithoutAction, visitorChat);

const everybodyHasMicAccess
= $(result).find('>query>x[type="result"]>field[var="muc#roomconfig_bip_allow_microphone"]>value')
Expand Down

0 comments on commit 200b9b1

Please sign in to comment.