|
|
|
@ -25,6 +25,7 @@ import { |
|
|
|
|
forEachConference, |
|
|
|
|
getCurrentConference |
|
|
|
|
} from '../conference'; |
|
|
|
|
import { SET_CONFIG } from '../config'; |
|
|
|
|
import { getDisableRemoveRaisedHandOnFocus } from '../config/functions.any'; |
|
|
|
|
import { JitsiConferenceEvents } from '../lib-jitsi-meet'; |
|
|
|
|
import { MEDIA_TYPE } from '../media'; |
|
|
|
@ -177,6 +178,26 @@ MiddlewareRegistry.register(store => next => action => { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case SET_CONFIG: { |
|
|
|
|
const result = next(action); |
|
|
|
|
|
|
|
|
|
const state = store.getState(); |
|
|
|
|
const { deploymentInfo } = state['features/base/config']; |
|
|
|
|
|
|
|
|
|
// if there userRegion set let's use it for the local participant
|
|
|
|
|
if (deploymentInfo && deploymentInfo.userRegion) { |
|
|
|
|
const localId = getLocalParticipant(state)?.id; |
|
|
|
|
|
|
|
|
|
store.dispatch(participantUpdated({ |
|
|
|
|
id: localId, |
|
|
|
|
local: true, |
|
|
|
|
region: deploymentInfo.userRegion |
|
|
|
|
})); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case SET_LOCAL_PARTICIPANT_RECORDING_STATUS: { |
|
|
|
|
const state = store.getState(); |
|
|
|
|
const { recording, onlySelf } = action; |
|
|
|
|