Delete deleted CalDAV exception events on sync
This commit is contained in:
parent
6ede34c70e
commit
cd432b9ea6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue