Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…alendarSync into release

Resolves #1123
  • Loading branch information
phw198 committed Dec 28, 2020
2 parents f4ec842 + 6dac048 commit 7718ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/OutlookGoogleCalendarSync/GoogleOgcs/GoogleCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ private Event createCalendarEntry_save(Event ev, AppointmentItem ai) {
if (Settings.Instance.SyncDirection == Sync.Direction.Bidirectional || OutlookOgcs.CustomProperty.ExistsAny(ai)) {
log.Debug("Storing the Google event IDs in Outlook appointment.");
OutlookOgcs.CustomProperty.AddGoogleIDs(ref ai, createdEvent);
OutlookOgcs.CustomProperty.SetOGCSlastModified(ref ai);
ai.Save();
}
//DOS ourself by triggering API limit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ public static void IdentifyEventDifferences(
//Don't delete any items that aren't yet in Google or just created in Google during this sync
for (int o = outlook.Count - 1; o >= 0; o--) {
if (!CustomProperty.Exists(outlook[o], CustomProperty.MetadataId.gEventID) ||
outlook[o].LastModificationTime > Sync.Engine.Instance.SyncStarted)
CustomProperty.GetOGCSlastModified(outlook[o]) > Sync.Engine.Instance.SyncStarted)
outlook.Remove(outlook[o]);
}
}
Expand Down

0 comments on commit 7718ab8

Please sign in to comment.