Also stop peeking on unmount
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a2a9dc6cd0
commit
2624017ab9
1 changed files with 4 additions and 0 deletions
|
@ -472,6 +472,10 @@ export default createReactClass({
|
||||||
RoomScrollStateStore.setScrollState(this.state.roomId, this._getScrollState());
|
RoomScrollStateStore.setScrollState(this.state.roomId, this._getScrollState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.state.shouldPeek) {
|
||||||
|
this.context.stopPeeking();
|
||||||
|
}
|
||||||
|
|
||||||
// stop tracking room changes to format permalinks
|
// stop tracking room changes to format permalinks
|
||||||
this._stopAllPermalinkCreators();
|
this._stopAllPermalinkCreators();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue