From 9a17ce91a8bc3e4886d4e7beda32aefde4ce9274 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 23 Mar 2022 10:37:11 -0400 Subject: [PATCH] [FIX] "Sent an attachment" text on media preview for threads (#3947) * update: `Content` component * update: `Message` snapshots --- app/containers/message/Content.tsx | 4 +--- storybook/stories/__snapshots__/Message.storyshot | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/containers/message/Content.tsx b/app/containers/message/Content.tsx index 684d4c6bf..add46cfbb 100644 --- a/app/containers/message/Content.tsx +++ b/app/containers/message/Content.tsx @@ -39,9 +39,7 @@ const Content = React.memo( const isPreview: any = props.tmid && !props.isThreadRoom; let content = null; - if (props.tmid && !props.msg) { - content = {I18n.t('Sent_an_attachment')}; - } else if (props.isEncrypted) { + if (props.isEncrypted) { content = (