Added detection for multiple attachments.
Co-authored-by: infi <insrt-git@geist.ga>pull/1049/head
parent
9af51c3996
commit
adc6f7db4f
|
|
@ -187,9 +187,13 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
|
|||
);
|
||||
}
|
||||
}}>
|
||||
{message.attachments &&
|
||||
message.attachments.length > 0 && (
|
||||
<File size={16} />
|
||||
{message.attachments && (
|
||||
<>
|
||||
<File size={16} />
|
||||
<em>{message.attachments.length > 1 ?
|
||||
"Sent multiple attachments" :
|
||||
"Sent an attachment"}</em>
|
||||
</>
|
||||
)}
|
||||
<Markdown
|
||||
disallowBigEmoji
|
||||
|
|
|
|||
Loading…
Reference in New Issue