From 2715ecf171f5176208b733ecae57ba060d9f7c79 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 12 Aug 2011 18:43:52 +0000 Subject: [PATCH] Monotone-Parent: 4b06d7cbf21f434e5a8fbe5186aa252705b8814e Monotone-Revision: afb8a72eddabdfbaa3b6865a4ebc2398294e95c3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-12T18:43:52 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ OpenChange/MAPIStoreTable.m | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 32246d195..63c145f67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-08-12 Wolfgang Sourdeau + * OpenChange/MAPIStoreTable.m (-setHandleId:): only register the + table in the notification cache if the provided handle id is not + null. + * OpenChange/MAPIStoreCalendarMessage.m (-save): resynchronise the container cache after the operation. diff --git a/OpenChange/MAPIStoreTable.m b/OpenChange/MAPIStoreTable.m index 390a8697f..530949709 100644 --- a/OpenChange/MAPIStoreTable.m +++ b/OpenChange/MAPIStoreTable.m @@ -302,7 +302,6 @@ static Class NSDataK, NSStringK; if ((self = [self init])) { container = newContainer; - [[MAPIStoreActiveTables activeTables] registerTable: self]; } return self; @@ -346,6 +345,8 @@ static Class NSDataK, NSStringK; - (void) setHandleId: (uint32_t) newHandleId { handleId = newHandleId; + if (newHandleId) + [[MAPIStoreActiveTables activeTables] registerTable: self]; } - (void) destroyHandle: (uint32_t) tableHandleId