1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

Add comment about roomId potentially not being resolved following an update from RoomViewStore

This commit is contained in:
Luke Barnard
2017-06-08 15:43:45 +01:00
parent e58e4db628
commit 59e649f326

View File

@ -183,6 +183,8 @@ module.exports = React.createClass({
}
this.setState(newState, () => {
// At this point, this.state.roomId could be null (e.g. the alias might not
// have been resolved yet) so anything called here must handle this case.
this._onHaveRoom();
this.onRoom(MatrixClientPeg.get().getRoom(this.state.roomId));
});