From 70218d21732ca801f71dc9c7ed366162f52612f5 Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Fri, 24 May 2019 14:49:44 -0700 Subject: [PATCH] Allow updating of isLongPost after editing message (#2829) --- app/components/post_body/post_body.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/post_body/post_body.js b/app/components/post_body/post_body.js index cf8d4eeee..c09504003 100644 --- a/app/components/post_body/post_body.js +++ b/app/components/post_body/post_body.js @@ -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, }); }