mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 22:32:45 +00:00
Monotone-Parent: 3603f537ae09df26ee564c1a0d497a90822ed31d
Monotone-Revision: ae56889949daaa81cfc557f2e59396ea0a1c9e4b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-13T01:54:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2011-08-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreMailMessageTable.m
|
||||
(-getRow:withRowID:andQueryType:inMemCtx:): overriden method to
|
||||
prefetch the "core infos" of messages that are going to be
|
||||
fetched.
|
||||
|
||||
2011-08-12 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/HTMLElement.js (refreshSelectionByIds):
|
||||
|
||||
@@ -26,6 +26,9 @@
|
||||
#import "MAPIStoreMessageTable.h"
|
||||
|
||||
@interface MAPIStoreMailMessageTable : MAPIStoreMessageTable
|
||||
{
|
||||
BOOL fetchedCoreInfos;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
if ((self = [super init]))
|
||||
{
|
||||
ASSIGN (sortOrderings, [NSArray arrayWithObject: @"ARRIVAL"]);
|
||||
fetchedCoreInfos = NO;
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -75,6 +76,7 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
- (void) cleanupCaches
|
||||
{
|
||||
[(MAPIStoreMailFolder *) container synchroniseCache];
|
||||
fetchedCoreInfos = NO;
|
||||
[super cleanupCaches];
|
||||
}
|
||||
|
||||
@@ -322,4 +324,20 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK;
|
||||
[self cleanupCaches];
|
||||
}
|
||||
|
||||
- (int) getRow: (struct mapistore_property_data **) dataP
|
||||
withRowID: (uint32_t) rowId
|
||||
andQueryType: (enum table_query_type) queryType
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
if (!fetchedCoreInfos)
|
||||
{
|
||||
fetchedCoreInfos = YES;
|
||||
[(SOGoMailFolder *) [container sogoObject]
|
||||
prefetchCoreInfosForMessageKeys: [self restrictedChildKeys]];
|
||||
}
|
||||
|
||||
return [super getRow: dataP withRowID: rowId
|
||||
andQueryType: queryType inMemCtx: memCtx];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user