You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Only attempt to peek once in the lifetime of RoomView
This commit is contained in:
@ -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.
|
||||||
this._onHaveRoom();
|
if (initial) {
|
||||||
|
this._onHaveRoom();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user