avoid importing ics files as duplicates

This commit is contained in:
tibbi 2022-05-06 23:11:28 +02:00
parent 27e027dc7e
commit 585b51b0eb

View file

@ -116,7 +116,7 @@ class EventsHelper(val context: Context) {
context.updateWidgets()
context.scheduleNextEventReminder(event, showToasts)
if (addToCalDAV && event.source != SOURCE_SIMPLE_CALENDAR && config.caldavSync) {
if (addToCalDAV && config.caldavSync && event.source != SOURCE_SIMPLE_CALENDAR && event.source != SOURCE_IMPORTED_ICS) {
context.calDAVHelper.insertCalDAVEvent(event)
}