From 3e69accc7e26717efbb124084166ddaaf0b67d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 29 Sep 2021 09:20:51 -0500 Subject: [PATCH] fix: Fixes initial mute state when joining. --- src/main/java/org/jitsi/jigasi/AudioModeration.java | 3 +-- src/main/java/org/jitsi/jigasi/JvbConference.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jitsi/jigasi/AudioModeration.java b/src/main/java/org/jitsi/jigasi/AudioModeration.java index 99687fa56..77d04aca8 100644 --- a/src/main/java/org/jitsi/jigasi/AudioModeration.java +++ b/src/main/java/org/jitsi/jigasi/AudioModeration.java @@ -131,9 +131,8 @@ public void clean() * Adds the iq handler that will handle muting us from the xmpp side. * We add it before inviting jicofo and before joining the room to not miss any message. */ - void notifyWillJoinJvbRoom() + void notifyWillJoinJvbRoom(ChatRoom mucRoom) { - ChatRoom mucRoom = this.jvbConference.getJvbRoom(); if (mucRoom instanceof ChatRoomJabberImpl) { // we always start the call unmuted diff --git a/src/main/java/org/jitsi/jigasi/JvbConference.java b/src/main/java/org/jitsi/jigasi/JvbConference.java index c5e8023ee..fac25afe1 100644 --- a/src/main/java/org/jitsi/jigasi/JvbConference.java +++ b/src/main/java/org/jitsi/jigasi/JvbConference.java @@ -822,7 +822,7 @@ public void joinConferenceRoom() + "is not an instance of ChatRoomJabberImpl"); } - this.audioModeration.notifyWillJoinJvbRoom(); + this.audioModeration.notifyWillJoinJvbRoom(mucRoom); // we invite focus and wait for its response // to be sure that if it is not in the room, the focus will be the