feat(rn) send isAudioMuted on conferenceEvent

pull/11691/head
Titus Moldovan 3 years ago committed by tmoldovan8x8
parent 1ee9f6a7e5
commit 9b75fc98c1
  1. 7
      react/features/mobile/external-api/middleware.js

@ -35,7 +35,7 @@ import {
getLocalParticipant
} from '../../base/participants';
import { MiddlewareRegistry, StateListenerRegistry } from '../../base/redux';
import { toggleScreensharing } from '../../base/tracks';
import { getLocalTracks, isLocalTrackMuted, toggleScreensharing } from '../../base/tracks';
import { OPEN_CHAT, CLOSE_CHAT } from '../../chat';
import { openChat } from '../../chat/actions';
import { sendMessage, setPrivateMessageRecipient, closeChat } from '../../chat/actions.any';
@ -529,6 +529,11 @@ function _sendConferenceEvent(
// transport an "equivalent".
if (conference) {
data.url = _normalizeUrl(conference[JITSI_CONFERENCE_URL_KEY]);
const localTracks = getLocalTracks(store.getState()['features/base/tracks']);
const isAudioMuted = isLocalTrackMuted(localTracks, MEDIA_TYPE.AUDIO);
data.isAudioMuted = isAudioMuted;
}
if (_swallowEvent(store, action, data)) {

Loading…
Cancel
Save