mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 10:58:14 +00:00
Fix call termination when muting before call is connected.
This commit is contained in:

committed by
Greyson Parrelli

parent
9742a212a2
commit
8ad61a52b9
@@ -492,11 +492,13 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activePeer.getState() == CallState.CONNECTED) {
|
||||||
try {
|
try {
|
||||||
callManager.setAudioEnable(microphoneEnabled);
|
callManager.setAudioEnable(microphoneEnabled);
|
||||||
} catch (CallException e) {
|
} catch (CallException e) {
|
||||||
callFailure("Enabling audio failed: ", e);
|
callFailure("Enabling audio failed: ", e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (activePeer != null) {
|
if (activePeer != null) {
|
||||||
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
sendMessage(viewModelStateFor(activePeer), activePeer, localCameraState, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled);
|
||||||
|
Reference in New Issue
Block a user