From 9e8bebe9427b40ca810f2f5fab33cb446727c393 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 10 Oct 2018 08:43:49 -0300 Subject: [PATCH] Do not show the option to copy post if there is no text (#2240) --- app/components/post_body/post_body.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/post_body/post_body.js b/app/components/post_body/post_body.js index c83b406df..0138c6101 100644 --- a/app/components/post_body/post_body.js +++ b/app/components/post_body/post_body.js @@ -132,6 +132,7 @@ export default class PostBody extends PureComponent { isPostEphemeral, isSystemMessage, managedConfig, + message, onCopyText, onPostDelete, onPostEdit, @@ -149,7 +150,7 @@ export default class PostBody extends PureComponent { }); } - if (managedConfig.copyAndPasteProtection !== 'true') { + if (managedConfig.copyAndPasteProtection !== 'true' && message) { actions.push({ text: formatMessage({id: 'mobile.post_info.copy_post', defaultMessage: 'Copy Post'}), onPress: onCopyText,