Only attempt to peek once in the lifetime of RoomView
This commit is contained in:
parent
2d6ba056d1
commit
b5fd78a97f
1 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,9 @@ module.exports = React.createClass({
|
||||||
this.setState(newState, () => {
|
this.setState(newState, () => {
|
||||||
// At this point, this.state.roomId could be null (e.g. the alias might not
|
// 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.
|
// have been resolved yet) so anything called here must handle this case.
|
||||||
|
if (initial) {
|
||||||
this._onHaveRoom();
|
this._onHaveRoom();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue