소스 검색

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

Not all TRACK_ actions include the `local` attribute, so use the underlying
`jitsiTrack` to check it.
master
Saúl Ibarra Corretgé 7 년 전
부모
커밋
42b85f73bd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      react/features/mobile/callkit/middleware.js

+ 2
- 2
react/features/mobile/callkit/middleware.js 파일 보기

@@ -380,11 +380,11 @@ function _setCallKitSubscriptions({ getState }, next, action) {
380 380
  */
381 381
 function _syncTrackState({ getState }, next, action) {
382 382
     const result = next(action);
383
-    const { track } = action;
383
+    const { jitsiTrack } = action.track;
384 384
     const state = getState();
385 385
     const conference = getCurrentConference(state);
386 386
 
387
-    if (track.local && conference && conference.callUUID) {
387
+    if (jitsiTrack.isLocal() && conference && conference.callUUID) {
388 388
         const tracks = state['features/base/tracks'];
389 389
         const muted = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);
390 390
 

Loading…
취소
저장