mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Added detection for multiple attachments.
Co-authored-by: infi <insrt-git@geist.ga>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user