Added a Notificatio n15 min before the Calender Event

This commit is contained in:
chiko committed 2026-10-09 01:40:43 +02:00
1 parent bffc8fbd1a
commit ae3384bd71
1 file changed
+9
+9
View File
@@ -37,6 +37,15 @@ function toIcsEvent(event: StoredCalendarEvent): string {
`DESCRIPTION:${escapeIcs(formatEventDetails(event).join('\n'))}`, `DESCRIPTION:${escapeIcs(formatEventDetails(event).join('\n'))}`,
...(event.location ? [`LOCATION:${escapeIcs(event.location)}`] : []), ...(event.location ? [`LOCATION:${escapeIcs(event.location)}`] : []),
...(event.url ? [`URL:${escapeIcs(event.url)}`] : []), ...(event.url ? [`URL:${escapeIcs(event.url)}`] : []),
...(event.status === 'confirmed'
? [
'BEGIN:VALARM',
'ACTION:DISPLAY',
'DESCRIPTION:Notification',
'TRIGGER:-PT15M',
'END:VALARM',
]
: []),
'END:VEVENT', 'END:VEVENT',
].join('\r\n'); ].join('\r\n');
} }