Check title before adding event to db

This commit is contained in:
Naveen 2023-06-15 23:34:10 +05:30
parent cdab56e660
commit 13019e6835
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class CalDAVHelper(val context: Context) {
}
// store the event in the local db only if it is an occurrence that has been modified and not deleted
if (status != Events.STATUS_CANCELED) {
if (status != Events.STATUS_CANCELED && title.isNotEmpty()) {
val storedEventId = context.eventsDB.getEventIdWithImportId(importId)
if (storedEventId != null) {
event.id = storedEventId