track active room with OpenRoomsStore

This commit is contained in:
Bruno Windels 2018-11-07 13:25:42 +01:00
parent df8539d6bc
commit 43efa29ef8
2 changed files with 10 additions and 9 deletions

View file

@ -116,9 +116,9 @@ module.exports = React.createClass({
}
},
_onActiveRoomChange: function() {
_onActiveRoomChange: function(activeRoomId) {
this.setState({
selected: this.props.room.roomId === RoomViewStore.getRoomId(),
selected: this.props.room.roomId === activeRoomId,
});
},