about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-16 12:15:58 +0200
committerThibG <thib@sitedethib.com>2018-09-16 12:41:20 +0200
commit657805f444ffd8d1cc0a36e0c37276a01611dc26 (patch)
treee6ae40c7b605b8297bcaa731059ae9ce79fa5a21
parent8433bd89e431d5834e4252c7ca197771944aa6d1 (diff)
Fix thread CW expansion not being reset when changing threads
-rw-r--r--app/javascript/flavours/glitch/features/status/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/index.js b/app/javascript/flavours/glitch/features/status/index.js
index 3d309976a..33a7bd075 100644
--- a/app/javascript/flavours/glitch/features/status/index.js
+++ b/app/javascript/flavours/glitch/features/status/index.js
@@ -103,7 +103,7 @@ export default class Status extends ImmutablePureComponent {
     if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
       this._scrolledIntoView = false;
       this.props.dispatch(fetchStatus(nextProps.params.statusId));
-      this.setState({ isExpanded: autoUnfoldCW(nextProps.settings, nextProps.status) });
+      this.setState({ isExpanded: autoUnfoldCW(nextProps.settings, nextProps.status), threadExpanded: undefined });
     }
   }