Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b5fd78a

Browse files
author
Luke Barnard
committed
Only attempt to peek once in the lifetime of RoomView
1 parent 2d6ba05 commit b5fd78a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/structures/RoomView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ module.exports = React.createClass({
191191
this.setState(newState, () => {
192192
// At this point, this.state.roomId could be null (e.g. the alias might not
193193
// have been resolved yet) so anything called here must handle this case.
194-
this._onHaveRoom();
194+
if (initial) {
195+
this._onHaveRoom();
196+
}
195197
});
196198
},
197199

0 commit comments

Comments
 (0)