Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[iOS] Fix checking if a track is local in ithe CallKit middleware

Saúl Ibarra Corretgé42b85f73bdf8
diff --git a/react/features/mobile/callkit/middleware.js b/react/features/mobile/callkit/middleware.js
index f41daa278f..7362fb8610 100644
--- a/react/features/mobile/callkit/middleware.js
+++ b/react/features/mobile/callkit/middleware.js
@@ -380,11 +380,11 @@ function _setCallKitSubscriptions({ getState }, next, action) {
*/
function _syncTrackState({ getState }, next, action) {
const result = next(action);
- const { track } = action;
+ const { jitsiTrack } = action.track;
const state = getState();
const conference = getCurrentConference(state);
- if (track.local && conference && conference.callUUID) {
+ if (jitsiTrack.isLocal() && conference && conference.callUUID) {
const tracks = state['features/base/tracks'];
const muted = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);