From 40b823d561f9412752587a8273806fe49442d192 Mon Sep 17 00:00:00 2001 From: Haisam Mohamed Hashim Date: Wed, 12 Oct 2022 19:15:24 +0530 Subject: [PATCH] ios: fix match in removeTrack --- ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m b/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m index a746a050a..5d62bc64c 100644 --- a/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m +++ b/ios/RCTWebRTC/WebRTCModule+RTCPeerConnection.m @@ -498,7 +498,7 @@ @implementation WebRTCModule (RTCPeerConnection) RTCRtpTransceiver *transceiver = nil; for (RTCRtpTransceiver *t in peerConnection.transceivers) { - if (t.sender.senderId == senderId) { + if([t.sender.senderId isEqual: senderId]) transceiver = t; break; }