From fbdde21ec00110776e374c985bfe9da09da57a7e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 6 Jun 2011 21:58:51 +0000 Subject: [PATCH] Monotone-Parent: 0274436d9ec9782dc91d65ff2c4760f006d2ca04 Monotone-Revision: 64ba2e93f125a52eecebddb59943e772948d3477 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-06-06T21:58:51 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreTable.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/OpenChange/MAPIStoreTable.m b/OpenChange/MAPIStoreTable.m index bf985a442..33871bd8a 100644 --- a/OpenChange/MAPIStoreTable.m +++ b/OpenChange/MAPIStoreTable.m @@ -32,6 +32,7 @@ #import "NSData+MAPIStore.h" #import "NSString+MAPIStore.h" +#import "MAPIStoreContext.h" #import "MAPIStoreObject.h" #import "MAPIStoreTable.h" @@ -826,6 +827,9 @@ static Class NSDataK, NSStringK; NSArray *list; NSString *childName; struct mapistore_table_notification_parameters notif_parameters; + struct mapistore_context *mstoreCtx; + + mstoreCtx = [[container context] connectionInfo]->mstore_ctx; notif_parameters.table_type = tableType; notif_parameters.handle = handleId; @@ -847,7 +851,8 @@ static Class NSDataK, NSStringK; if (newChildRow != NSNotFound) { notif_parameters.row_id = newChildRow; - mapistore_push_notification (MAPISTORE_TABLE, + mapistore_push_notification (mstoreCtx, + MAPISTORE_TABLE, MAPISTORE_OBJECT_CREATED, ¬if_parameters); } @@ -855,14 +860,16 @@ static Class NSDataK, NSStringK; else { if (newChildRow == NSNotFound) - mapistore_push_notification (MAPISTORE_TABLE, + mapistore_push_notification (mstoreCtx, + MAPISTORE_TABLE, MAPISTORE_OBJECT_DELETED, ¬if_parameters); else { /* the fact that the row order has changed has no impact here */ notif_parameters.row_id = newChildRow; - mapistore_push_notification (MAPISTORE_TABLE, + mapistore_push_notification (mstoreCtx, + MAPISTORE_TABLE, MAPISTORE_OBJECT_MODIFIED, ¬if_parameters); }