Delete deleted CalDAV exception events on sync

This commit is contained in:
Naveen 2023-06-18 19:59:39 +05:30
parent 6ede34c70e
commit cd432b9ea6
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 6 additions and 0 deletions

View File

@ -272,6 +272,12 @@ class CalDAVHelper(val context: Context) {
}
event.parentId = parentEvent.id!!
eventsHelper.insertEvent(event, addToCalDAV = false, showToasts = false)
} else {
// delete the deleted exception event from local db
val storedEventId = context.eventsDB.getEventIdWithImportId(importId)
if (storedEventId != null) {
eventsHelper.deleteEvent(storedEventId, false)
}
}
return@queryCursorInlined