mirror of https://github.com/vector-im/riot-web
Add comment about roomId potentially not being resolved following an update from RoomViewStore
parent
e58e4db628
commit
59e649f326
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue