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) => '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,

View File

@ -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) {