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 Miguel Alatzar
parent e5b5fefa09
commit 70218d2173

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