From db03580b9bd55cbdb8b013ec5c13ef7158abf532 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Fri, 4 Apr 2025 23:03:48 +0300 Subject: [PATCH] hide flagged attachment on attachment modal --- src/CONST.ts | 1 + .../AttachmentCarousel/CarouselItem.tsx | 3 +- .../AttachmentCarousel/extractAttachments.ts | 7 ++- .../home/report/PureReportActionItem.tsx | 2 +- .../home/report/ReportAttachmentsContext.tsx | 2 +- tests/unit/CarouselItemTest.tsx | 43 +++++++++++++++++++ 6 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 tests/unit/CarouselItemTest.tsx diff --git a/src/CONST.ts b/src/CONST.ts index eb285d3a1bc2..108d89f5e8eb 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1788,6 +1788,7 @@ const CONST = { YOUR_LOCATION_TEXT: 'Your Location', ATTACHMENT_MESSAGE_TEXT: '[Attachment]', + ATTACHMENT_REGEX: /