Fixed refreshMicrophoneState() that was toggling microphone state

This commit is contained in:
Sylvain Berfini 2024-08-27 11:10:36 +02:00
parent 34e1f0070e
commit 245b848c91

View file

@ -663,11 +663,6 @@ class CurrentCallViewModel @UiThread constructor() : GenericViewModel() {
} else {
currentCall.microphoneMuted
}
if (currentCall.conference != null) {
currentCall.conference?.microphoneMuted = !micMuted
} else {
currentCall.microphoneMuted = !micMuted
}
if (micMuted != isMicrophoneMuted.value) {
if (micMuted) {
Log.w("$TAG Microphone is muted, updating button state accordingly")