Allow updating of isLongPost after editing message (#2829)

This commit is contained in:
Miguel Alatzar 2019-05-24 14:49:44 -07:00 committed by GitHub
parent 0d38b22a51
commit f444b70f4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});
}