fix #1677, avoid duplicating CalDAV synced birthdays/anniversaries

This commit is contained in:
tibbi 2023-01-17 12:48:59 +01:00
parent 38e49a8e38
commit f0dca9eb0b
1 changed files with 5 additions and 2 deletions

View File

@ -768,10 +768,13 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
eventsFound++
if (!importIDs.containsKey(contactId)) {
// avoid adding duplicate birthdays/anniversaries
if (existingEvents.none { it.title == event.title && it.startTS == event.startTS }) {
eventsHelper.insertEvent(event, false, false) {
eventsAdded++
}
}
}
break
} catch (e: Exception) {
}