浏览代码

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

正在加载...
取消
保存