Allow updating of isLongPost after editing message (#2829)
This commit is contained in:
parent
e5b5fefa09
commit
70218d2173
1 changed files with 2 additions and 2 deletions
|
|
@ -115,9 +115,9 @@ export default class PostBody extends PureComponent {
|
|||
const {height} = event.nativeEvent.layout;
|
||||
const {showLongPost} = this.props;
|
||||
|
||||
if (!showLongPost && height >= this.state.maxHeight) {
|
||||
if (!showLongPost) {
|
||||
this.setState({
|
||||
isLongPost: true,
|
||||
isLongPost: height >= this.state.maxHeight,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue