ソースを参照

[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);

読み込み中…
キャンセル
保存