mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -05:00
Added detection for multiple attachments.
Co-authored-by: infi <insrt-git@geist.ga>
This commit is contained in:
parent
4c4477e79e
commit
f5e2779983
1 changed files with 7 additions and 3 deletions
|
@ -187,9 +187,13 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
{message.attachments &&
|
{message.attachments && (
|
||||||
message.attachments.length > 0 && (
|
<>
|
||||||
<File size={16} />
|
<File size={16} />
|
||||||
|
<em>{message.attachments.length > 1 ?
|
||||||
|
"Sent multiple attachments" :
|
||||||
|
"Sent an attachment"}</em>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
<Markdown
|
<Markdown
|
||||||
disallowBigEmoji
|
disallowBigEmoji
|
||||||
|
|
Loading…
Reference in a new issue