From 4c720d6855547be45ff55ab9595eccc7b56f98e1 Mon Sep 17 00:00:00 2001 From: nesgarbo Date: Thu, 16 Apr 2026 12:55:19 +0200 Subject: [PATCH] fix: export isCalendarMimeType for use in email attachment filtering Previously isCalendarMimeType was a module-private function in lib/calendar-invitation.ts. Exporting it allows the email viewer to reuse the same MIME type detection logic when filtering out calendar attachments, avoiding duplication of the type set. --- lib/calendar-invitation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/calendar-invitation.ts b/lib/calendar-invitation.ts index 9eb3c7ca..009ea124 100644 --- a/lib/calendar-invitation.ts +++ b/lib/calendar-invitation.ts @@ -67,7 +67,7 @@ function parseContentType(value?: string | null): { mimeType: string; params: Re }; } -function isCalendarMimeType(value?: string | null): boolean { +export function isCalendarMimeType(value?: string | null): boolean { const { mimeType } = parseContentType(value); return mimeType === 'text/calendar' || mimeType === 'application/ics' || mimeType === 'application/icalendar'; }