fix: Fixes showing user region.
This commit is contained in:
parent
b084aae212
commit
6682167800
|
@ -289,6 +289,12 @@ StateListenerRegistry.register(
|
||||||
})),
|
})),
|
||||||
'raisedHand': (participant, value) =>
|
'raisedHand': (participant, value) =>
|
||||||
_raiseHandUpdated(store, conference, participant.getId(), value),
|
_raiseHandUpdated(store, conference, participant.getId(), value),
|
||||||
|
'region': (participant, value) =>
|
||||||
|
store.dispatch(participantUpdated({
|
||||||
|
conference,
|
||||||
|
id: participant.getId(),
|
||||||
|
region: value
|
||||||
|
})),
|
||||||
'remoteControlSessionStatus': (participant, value) =>
|
'remoteControlSessionStatus': (participant, value) =>
|
||||||
store.dispatch(participantUpdated({
|
store.dispatch(participantUpdated({
|
||||||
conference,
|
conference,
|
||||||
|
|
|
@ -91,6 +91,11 @@ type Props = AbstractProps & {
|
||||||
*/
|
*/
|
||||||
_onSaveLogs: Function,
|
_onSaveLogs: Function,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The region reported by the participant.
|
||||||
|
*/
|
||||||
|
_region: String,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The video SSRC of this client.
|
* The video SSRC of this client.
|
||||||
*/
|
*/
|
||||||
|
@ -171,7 +176,6 @@ class ConnectionIndicatorContent extends AbstractConnectionIndicator<Props, Stat
|
||||||
framerate,
|
framerate,
|
||||||
maxEnabledResolution,
|
maxEnabledResolution,
|
||||||
packetLoss,
|
packetLoss,
|
||||||
region,
|
|
||||||
resolution,
|
resolution,
|
||||||
serverRegion,
|
serverRegion,
|
||||||
transport
|
transport
|
||||||
|
@ -195,7 +199,7 @@ class ConnectionIndicatorContent extends AbstractConnectionIndicator<Props, Stat
|
||||||
onShowMore = { this._onToggleShowMore }
|
onShowMore = { this._onToggleShowMore }
|
||||||
packetLoss = { packetLoss }
|
packetLoss = { packetLoss }
|
||||||
participantId = { this.props.participantId }
|
participantId = { this.props.participantId }
|
||||||
region = { region }
|
region = { this.props._region }
|
||||||
resolution = { resolution }
|
resolution = { resolution }
|
||||||
serverRegion = { serverRegion }
|
serverRegion = { serverRegion }
|
||||||
shouldShowMore = { this.state.showMoreStats }
|
shouldShowMore = { this.state.showMoreStats }
|
||||||
|
@ -310,7 +314,8 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
|
||||||
_connectionStatus: participant?.connectionStatus,
|
_connectionStatus: participant?.connectionStatus,
|
||||||
_enableSaveLogs: state['features/base/config'].enableSaveLogs,
|
_enableSaveLogs: state['features/base/config'].enableSaveLogs,
|
||||||
_disableShowMoreStats: state['features/base/config'].disableShowMoreStats,
|
_disableShowMoreStats: state['features/base/config'].disableShowMoreStats,
|
||||||
_isLocalVideo: participant?.local
|
_isLocalVideo: participant?.local,
|
||||||
|
_region: participant?.region
|
||||||
};
|
};
|
||||||
|
|
||||||
if (conference) {
|
if (conference) {
|
||||||
|
|
Loading…
Reference in New Issue