fix: Fixes showing user region.

This commit is contained in:
Дамян Минков 2021-12-22 11:51:26 -06:00
parent b084aae212
commit 6682167800
2 changed files with 14 additions and 3 deletions

View File

@ -289,6 +289,12 @@ StateListenerRegistry.register(
})),
'raisedHand': (participant, value) =>
_raiseHandUpdated(store, conference, participant.getId(), value),
'region': (participant, value) =>
store.dispatch(participantUpdated({
conference,
id: participant.getId(),
region: value
})),
'remoteControlSessionStatus': (participant, value) =>
store.dispatch(participantUpdated({
conference,

View File

@ -91,6 +91,11 @@ type Props = AbstractProps & {
*/
_onSaveLogs: Function,
/**
* The region reported by the participant.
*/
_region: String,
/**
* The video SSRC of this client.
*/
@ -171,7 +176,6 @@ class ConnectionIndicatorContent extends AbstractConnectionIndicator<Props, Stat
framerate,
maxEnabledResolution,
packetLoss,
region,
resolution,
serverRegion,
transport
@ -195,7 +199,7 @@ class ConnectionIndicatorContent extends AbstractConnectionIndicator<Props, Stat
onShowMore = { this._onToggleShowMore }
packetLoss = { packetLoss }
participantId = { this.props.participantId }
region = { region }
region = { this.props._region }
resolution = { resolution }
serverRegion = { serverRegion }
shouldShowMore = { this.state.showMoreStats }
@ -310,7 +314,8 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
_connectionStatus: participant?.connectionStatus,
_enableSaveLogs: state['features/base/config'].enableSaveLogs,
_disableShowMoreStats: state['features/base/config'].disableShowMoreStats,
_isLocalVideo: participant?.local
_isLocalVideo: participant?.local,
_region: participant?.region
};
if (conference) {