浏览代码

[iOS] Fix starting a call muted when permission was not granted

Read the muted state from the track itself instead of from base/media. This
avoid expressing the incorrect desire when the call starts muted because
permission was never granted.
master
Saúl Ibarra Corretgé 7 年前
父节点
当前提交
84c1c3dfd3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      react/features/mobile/callkit/middleware.js

+ 2
- 1
react/features/mobile/callkit/middleware.js 查看文件

290
         // Break the loop. Audio can be muted from both CallKit and Jitsi Meet.
290
         // Break the loop. Audio can be muted from both CallKit and Jitsi Meet.
291
         // We must keep them in sync, but at some point the loop needs to be
291
         // We must keep them in sync, but at some point the loop needs to be
292
         // broken. We are doing it here, on the CallKit handler.
292
         // broken. We are doing it here, on the CallKit handler.
293
-        const { muted: oldValue } = getState()['features/base/media'].audio;
293
+        const tracks = getState()['features/base/tracks'];
294
+        const oldValue = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);
294
 
295
 
295
         if (oldValue !== newValue) {
296
         if (oldValue !== newValue) {
296
             const value = Boolean(newValue);
297
             const value = Boolean(newValue);

正在加载...
取消
保存