From 5c2b6de98b702010c1a6b9f8a7d67ac86a5f0467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deborah=20K=C3=B6pfer?= Date: Fri, 12 Jul 2024 08:49:26 +0200 Subject: [PATCH] style(prettier): whitespace fix --- src/components/message/MessageAttachment.tsx | 40 ++++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/message/MessageAttachment.tsx b/src/components/message/MessageAttachment.tsx index 7676b4313..6dc3c4430 100644 --- a/src/components/message/MessageAttachment.tsx +++ b/src/components/message/MessageAttachment.tsx @@ -193,25 +193,25 @@ export const MessageAttachment = (props: MessageAttachmentProps) => { {props.attachment.image_size ? `| ${ ( - getAttachmentSizeMBForKB( - props.t === 'e2e' - ? Math.floor( - (props.attachment - .image_size - - KEY_ID_LENGTH - - MAX_PREFIX_LENGTH - - VERSION_SEPERATOR.length - - ENCRYPTION_VERSION_ACTIVE.length - - 100) / - 2 - - VECTOR_LENGTH * 2 - ) * 1000 - : props.attachment.image_size * - 1000 - ) / 1000 - ).toFixed(2) + - translate('attachments.type.label.mb') - }` + getAttachmentSizeMBForKB( + props.t === 'e2e' + ? Math.floor( + (props.attachment + .image_size - + KEY_ID_LENGTH - + MAX_PREFIX_LENGTH - + VERSION_SEPERATOR.length - + ENCRYPTION_VERSION_ACTIVE.length - + 100) / + 2 - + VECTOR_LENGTH * 2 + ) * 1000 + : props.attachment.image_size * + 1000 + ) / 1000 + ).toFixed(2) + + translate('attachments.type.label.mb') + }` : null}

@@ -219,7 +219,7 @@ export const MessageAttachment = (props: MessageAttachmentProps) => { {props.t === 'e2e' && ( <> {encryptedFile && - attachmentStatus === DECRYPTION_FINISHED ? ( + attachmentStatus === DECRYPTION_FINISHED ? (