From a29aa9091389affb35236df9e234afe2f216f8dd Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 8 Mar 2012 15:24:23 +0000 Subject: [PATCH] Monotone-Parent: bb133434e9e283747d7758877c0c8dcd50346b55 Monotone-Revision: 4ea252c6500eb31c2c96a411c6338ecc5e71eef0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-08T15:24:23 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ OpenChange/MAPIStoreGCSFolder.m | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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) {