From 3274c1e1fa90996abf38e15dcc8131b352a4f8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Mon, 2 May 2022 05:47:06 +0200 Subject: [PATCH] Fix typo in name of method to check if video should not be received MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- .../java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 486e39713..07a8f4df2 100644 --- a/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java +++ b/app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java @@ -258,7 +258,7 @@ public class PeerConnectionWrapper { return isMCUPublisher; } - private boolean shouldReceiveVideo() { + private boolean shouldNotReceiveVideo() { for (MediaConstraints.KeyValuePair keyValuePair : mediaConstraints.mandatory) { if ("OfferToReceiveVideo".equals(keyValuePair.getKey())) { return !Boolean.parseBoolean(keyValuePair.getValue()); @@ -456,7 +456,7 @@ public class PeerConnectionWrapper { if (peerConnection != null) { if (peerConnection.getLocalDescription() == null) { - if (shouldReceiveVideo()) { + if (shouldNotReceiveVideo()) { for (RtpTransceiver t : peerConnection.getTransceivers()) { if (t.getMediaType().equals(MediaStreamTrack.MediaType.MEDIA_TYPE_VIDEO)) { t.stop();