Skip to content

Commit

Permalink
Fix logic for ForceSave.
Browse files Browse the repository at this point in the history
Fixes #1218, #1200
  • Loading branch information
phw198 committed May 10, 2021
1 parent ed04b3b commit 420645a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OutlookGoogleCalendarSync/GoogleOgcs/GoogleCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ public void UpdateCalendarEntries(Dictionary<AppointmentItem, Event> entriesToBe

if (itemModified == 0) {
if (ev == null) {
if (CustomProperty.Exists(compare.Value, CustomProperty.MetadataId.forceSave))
if (compare.Value.Updated < compare.Key.LastModificationTime || CustomProperty.Exists(compare.Value, CustomProperty.MetadataId.forceSave))
ev = compare.Value;
else if (compare.Value.Updated > compare.Key.LastModificationTime)
else
continue;
}
log.Debug("Doing a dummy update in order to update the last modified date of " +
Expand Down

0 comments on commit 420645a

Please sign in to comment.