Merge pull request #4116 from matrix-org/jryans/rm-cider-watcher

Remove unused CIDER setting watcher
pull/21833/head
J. Ryan Stinnett 2020-02-24 13:10:59 +00:00 committed by GitHub
commit f80582a51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -460,8 +460,6 @@ export default createReactClass({
// (We could use isMounted, but facebook have deprecated that.)
this.unmounted = true;
SettingsStore.unwatchSetting(this._ciderWatcherRef);
// update the scroll map before we get unmounted
if (this.state.roomId) {
RoomScrollStateStore.setScrollState(this.state.roomId, this._getScrollState());