Skip to content

Commit

Permalink
[buteo-sync-plugins-social] Purge ophan 'ghost' events. Contributes t…
Browse files Browse the repository at this point in the history
…o JB#52608

During ghost event cleanup, any orphans that don't belong to any
notebook are deleted. This also purges them so they no longer exist in
the database after the sync.
  • Loading branch information
llewelld committed Feb 1, 2021
1 parent 5716a64 commit e580228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/google-calendars/googlecalendarsyncadaptor.cpp
Expand Up @@ -1117,7 +1117,7 @@ void GoogleCalendarSyncAdaptor::finalCleanup()
if (foundOrphans == 0) {
setGhostEventCleanupPerformed();
SOCIALD_LOG_INFO("orphan cleanup completed without finding orphans!");
} else if (m_storage->save()) {
} else if (m_storage->save(mKCal::ExtendedStorage::PurgeDeleted)) {
setGhostEventCleanupPerformed();
SOCIALD_LOG_INFO("orphan cleanup deleted" << foundOrphans << "; storage save completed!");
} else {
Expand Down

0 comments on commit e580228

Please sign in to comment.