Browse Source

Fix CW auto-expanding if collapsed toots are disabled

closed-social-glitch-2
Ondřej Hruška 7 years ago
parent
commit
66b1174d25
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/glitch/components/status/index.js

+ 3
- 1
app/javascript/glitch/components/status/index.js View File

@ -233,7 +233,9 @@ uncollapse our status accordingly.
componentWillReceiveProps (nextProps) {
if (!nextProps.settings.getIn(['collapsed', 'enabled'])) {
this.setExpansion(true);
if (this.state.isExpanded === false) {
this.setExpansion(null);
}
} else if (
nextProps.collapse !== this.props.collapse &&
nextProps.collapse !== undefined

Loading…
Cancel
Save