Skip to content

Commit

Permalink
style(prettier): whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koepferd authored and tkuzynow committed Jul 15, 2024
1 parent 296e70c commit dbdbf71
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/components/message/MessageAttachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,33 +193,33 @@ 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}
</p>
</span>
</button>
{props.t === 'e2e' && (
<>
{encryptedFile &&
attachmentStatus === DECRYPTION_FINISHED ? (
attachmentStatus === DECRYPTION_FINISHED ? (
<a
ref={currentDownloadLink}
href={encryptedFile}
Expand Down

0 comments on commit dbdbf71

Please sign in to comment.