fix #1677, avoid duplicating CalDAV synced birthdays/anniversaries
This commit is contained in:
parent
38e49a8e38
commit
f0dca9eb0b
|
@ -768,8 +768,11 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||
|
||||
eventsFound++
|
||||
if (!importIDs.containsKey(contactId)) {
|
||||
eventsHelper.insertEvent(event, false, false) {
|
||||
eventsAdded++
|
||||
// avoid adding duplicate birthdays/anniversaries
|
||||
if (existingEvents.none { it.title == event.title && it.startTS == event.startTS }) {
|
||||
eventsHelper.insertEvent(event, false, false) {
|
||||
eventsAdded++
|
||||
}
|
||||
}
|
||||
}
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue