Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Saúl Ibarra Corretgé84c1c3dfd365
diff --git a/react/features/mobile/callkit/middleware.js b/react/features/mobile/callkit/middleware.js
index 18cf6646bb..dcadcbad36 100644
--- a/react/features/mobile/callkit/middleware.js
+++ b/react/features/mobile/callkit/middleware.js
@@ -290,7 +290,8 @@ function _onPerformSetMutedCallAction({ callUUID, muted: newValue }) {
// Break the loop. Audio can be muted from both CallKit and Jitsi Meet.
// We must keep them in sync, but at some point the loop needs to be
// broken. We are doing it here, on the CallKit handler.
- const { muted: oldValue } = getState()['features/base/media'].audio;
+ const tracks = getState()['features/base/tracks'];
+ const oldValue = isLocalTrackMuted(tracks, MEDIA_TYPE.AUDIO);
if (oldValue !== newValue) {
const value = Boolean(newValue);