Fixed sent attachments code

This commit is contained in:
nizune
2021-08-04 19:59:29 +02:00
parent c011bb9422
commit 3b65501a12
2 changed files with 28 additions and 38 deletions

View File

@@ -187,20 +187,15 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
);
}
}}>
{message.attachments &&
message.attachments.length > 0 && (
<>
<File size={16} />
<em>
{message.attachments.length >
0 ? (
<Text id="app.main.channel.misc.sent_multiple_files" />
) : (
<Text id="app.main.channel.misc.sent_file" />
)}
</em>
</>
)}
{message.attachments && (
<>
<File size={16} />
<em>{message.attachments.length > 1 ?
<Text id="app.main.channel.misc.sent_multiple_files" /> :
<Text id="app.main.channel.misc.sent_file" /> }
</em>
</>
)}
<Markdown
disallowBigEmoji
content={(