瀏覽代碼

[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,7 +290,8 @@ function _onPerformSetMutedCallAction({ callUUID, muted: newValue }) {
290 290
         // Break the loop. Audio can be muted from both CallKit and Jitsi Meet.
291 291
         // We must keep them in sync, but at some point the loop needs to be
292 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 296
         if (oldValue !== newValue) {
296 297
             const value = Boolean(newValue);

Loading…
取消
儲存