diff --git a/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java b/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java index 1da81d7bc..59ff5e9c1 100644 --- a/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java +++ b/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java @@ -575,7 +575,9 @@ public class PeerConnectionWrapper { @Override public void onSetSuccess() { if (peerConnection != null) { - if (peerConnection.getLocalDescription() == null) { + // Local provisional answers ("pranswer") are not used anywhere, + // so the "have-local-pranswer" state is not taken into account. + if (peerConnection.signalingState() == PeerConnection.SignalingState.HAVE_REMOTE_OFFER) { if (shouldNotReceiveVideo()) { for (RtpTransceiver t : peerConnection.getTransceivers()) {