diff --git a/app/components/post_body/post_body.js b/app/components/post_body/post_body.js
index 2624b0399..4f9024f0a 100644
--- a/app/components/post_body/post_body.js
+++ b/app/components/post_body/post_body.js
@@ -173,16 +173,16 @@ export default class PostBody extends PureComponent {
actions.push({text: formatMessage({id: 'post_info.edit', defaultMessage: 'Edit'}), onPress: onPostEdit});
}
- if (canDelete && !hasBeenDeleted) {
- actions.push({text: formatMessage({id: 'post_info.del', defaultMessage: 'Delete'}), onPress: onPostDelete});
- }
-
actions.push({
text: formatMessage({id: 'get_post_link_modal.title', defaultMessage: 'Copy Permalink'}),
onPress: this.props.onCopyPermalink,
});
}
+ if (!isPendingOrFailedPost && !isPostEphemeral && canDelete && !hasBeenDeleted) {
+ actions.push({text: formatMessage({id: 'post_info.del', defaultMessage: 'Delete'}), onPress: onPostDelete});
+ }
+
return actions;
};
@@ -507,16 +507,16 @@ export default class PostBody extends PureComponent {
{body}
{isFailed &&
-
-
-
+
+
+
}