From f5e27799834c3daaaacd435c43e0582ef59af36e Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Tue, 3 Aug 2021 22:42:06 +0200 Subject: [PATCH] Added detection for multiple attachments. Co-authored-by: infi --- .../common/messaging/attachments/MessageReply.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/common/messaging/attachments/MessageReply.tsx b/src/components/common/messaging/attachments/MessageReply.tsx index 7e606a65..1714dd6d 100644 --- a/src/components/common/messaging/attachments/MessageReply.tsx +++ b/src/components/common/messaging/attachments/MessageReply.tsx @@ -187,9 +187,13 @@ export const MessageReply = observer(({ index, channel, id }: Props) => { ); } }}> - {message.attachments && - message.attachments.length > 0 && ( - + {message.attachments && ( + <> + + {message.attachments.length > 1 ? + "Sent multiple attachments" : + "Sent an attachment"} + )}