feat(rn) send isAudioMuted on conferenceEvent
This commit is contained in:
parent
1ee9f6a7e5
commit
9b75fc98c1
|
@ -35,7 +35,7 @@ import {
|
||||||
getLocalParticipant
|
getLocalParticipant
|
||||||
} from '../../base/participants';
|
} from '../../base/participants';
|
||||||
import { MiddlewareRegistry, StateListenerRegistry } from '../../base/redux';
|
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 { OPEN_CHAT, CLOSE_CHAT } from '../../chat';
|
||||||
import { openChat } from '../../chat/actions';
|
import { openChat } from '../../chat/actions';
|
||||||
import { sendMessage, setPrivateMessageRecipient, closeChat } from '../../chat/actions.any';
|
import { sendMessage, setPrivateMessageRecipient, closeChat } from '../../chat/actions.any';
|
||||||
|
@ -529,6 +529,11 @@ function _sendConferenceEvent(
|
||||||
// transport an "equivalent".
|
// transport an "equivalent".
|
||||||
if (conference) {
|
if (conference) {
|
||||||
data.url = _normalizeUrl(conference[JITSI_CONFERENCE_URL_KEY]);
|
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)) {
|
if (_swallowEvent(store, action, data)) {
|
||||||
|
|
Loading…
Reference in New Issue