Update selector and containers. Peers now don't jump around on the screen when active speaker changes.

This commit is contained in:
Håvar Aambø Fosstveit
2019-11-26 12:49:36 +01:00
parent 4c39a48d4e
commit b163fd0a72
4 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -190,13 +190,13 @@ SpeakerPeer.propTypes =
classes : PropTypes.object.isRequired
};
const mapStateToProps = (state, props) =>
const mapStateToProps = (state, { id }) =>
{
const getPeerConsumers = makePeerConsumerSelector();
return {
peer : state.peers[props.id],
...getPeerConsumers(state, props)
peer : state.peers[id],
...getPeerConsumers(state, id)
};
};