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