summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-07-10 14:52:28 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-07-11 02:52:28 +0800
commit046dbc5e81e9bed0c47dbe84dfbd85df1e0f341a (patch)
treefd07e589203f0f843c3325b8db4f9efd84b9fadf /webapp
parent1e7022ff6d04b5f341c13530105d9dcf08c88ca8 (diff)
downloadchat-046dbc5e81e9bed0c47dbe84dfbd85df1e0f341a.tar.gz
chat-046dbc5e81e9bed0c47dbe84dfbd85df1e0f341a.tar.bz2
chat-046dbc5e81e9bed0c47dbe84dfbd85df1e0f341a.zip
Show expand button when previews defaulted to collapsed (#6896)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/post_body_additional_content.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_body_additional_content.jsx b/webapp/components/post_view/post_body_additional_content.jsx
index 107c75778..485e63967 100644
--- a/webapp/components/post_view/post_body_additional_content.jsx
+++ b/webapp/components/post_view/post_body_additional_content.jsx
@@ -187,7 +187,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent {
);
const contents = [message];
- if (this.state.linkLoaded) {
+ if (this.state.linkLoaded || this.props.previewCollapsed.startsWith('true')) {
if (prependToggle) {
contents.unshift(toggle);
} else {