Skip to content

Commit

Permalink
(fix) always force save events creation over EAS (fixes #3958)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Dec 21, 2016
1 parent 7327ec2 commit 1da36a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 11 additions & 2 deletions ActiveSync/SOGoActiveSyncDispatcher+Sync.m
Expand Up @@ -367,7 +367,12 @@ - (void) processSyncAddCommand: (id <DOMElement>) theDocumentElement
{
[o takeActiveSyncValues: allValues inContext: context];
[sogoObject setIsNew: is_new];
[sogoObject saveComponent: o];

if (theFolderType == ActiveSyncEventFolder)
[sogoObject saveComponent: o force: YES];
else
[sogoObject saveComponent: o];

}

// Update syncCache
Expand Down Expand Up @@ -588,7 +593,11 @@ - (void) processSyncChangeCommand: (id <DOMElement>) theDocumentElement
if ([roles containsObject: SOGoCalendarRole_ComponentModifier] || [[sogoObject ownerInContext: context] isEqualToString: [[context activeUser] login]])
{
[o takeActiveSyncValues: allChanges inContext: context];
[sogoObject saveComponent: o];

if (theFolderType == ActiveSyncEventFolder)
[sogoObject saveComponent: o force: YES];
else
[sogoObject saveComponent: o];

if ([syncCache objectForKey: serverId])
[syncCache setObject: [NSString stringWithFormat: @"%f", [[sogoObject lastModified] timeIntervalSince1970]] forKey: serverId];
Expand Down
5 changes: 4 additions & 1 deletion ActiveSync/SOGoActiveSyncDispatcher.m
Expand Up @@ -1817,7 +1817,10 @@ - (void) processMeetingResponse: (id <DOMElement>) theDocumentElement
{
appointmentObject = [[SOGoAppointmentObject alloc] initWithName: [NSString stringWithFormat: @"%@.ics", [event uid]]
inContainer: collection];
[appointmentObject saveComponent: event];
if (folderType == ActiveSyncEventFolder)
[appointmentObject saveComponent: event force: YES];
else
[appointmentObject saveComponent: event];
}

if (uidCache && [calendarId length] > 64)
Expand Down
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -28,6 +28,7 @@ Bug fixes
- [eas] properly skip folders we don't want to synchronize (#3943)
- [eas] fixed 30 mins freebusy offset with S Planner
- [eas] now correctly handles reminders on tasks (#3964)
- [eas] always force save events creation over EAS (#3958)

3.2.4 (2016-12-01)
------------------
Expand Down

0 comments on commit 1da36a3

Please sign in to comment.