diff --git a/ChangeLog b/ChangeLog index c4dab2402..185609f88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2012-03-08 Wolfgang Sourdeau + * OpenChange/MAPIStoreGCSFolder.m (-synchroniseCache): ensure that + any record that are marked as updated are removed from the record + cache of the corresponding SOGoGCSFolder instance. + * OpenChange/MAPIStoreFolder.m (-getPidTagSubFolders:inMemCtx:): invoke [self folderKeys] rather than the corresponding ivar. diff --git a/OpenChange/MAPIStoreGCSFolder.m b/OpenChange/MAPIStoreGCSFolder.m index 398a22ffc..3c41b7f1b 100644 --- a/OpenChange/MAPIStoreGCSFolder.m +++ b/OpenChange/MAPIStoreGCSFolder.m @@ -288,7 +288,8 @@ BOOL rc = YES, foundChange = NO; uint64_t newChangeNum; NSData *changeKey; - NSNumber *ti, *changeNumber, *lastModificationDate, *cName, *cVersion, *cLastModified; + NSString *cName; + NSNumber *ti, *changeNumber, *lastModificationDate, *cVersion, *cLastModified; EOFetchSpecification *fs; EOQualifier *searchQualifier, *fetchQualifier; NSUInteger count, max; @@ -367,6 +368,8 @@ cVersion = [result objectForKey: @"c_version"]; cLastModified = [result objectForKey: @"c_lastmodified"]; + [sogoObject removeChildRecordWithName: cName]; + messageEntry = [messages objectForKey: cName]; if (!messageEntry) {