oc: Use NSString index for version lookup
It was using NSNumber in versions Dictionary for GCSMessages but it is stored as the NSString representation (0x390300000000001), so the lookup has always failed.
This commit is contained in:
parent
2fc21e48d8
commit
3dff73636c
|
@ -27,6 +27,7 @@
|
||||||
#import <Foundation/NSString.h>
|
#import <Foundation/NSString.h>
|
||||||
|
|
||||||
#import <NGExtensions/NSObject+Logs.h>
|
#import <NGExtensions/NSObject+Logs.h>
|
||||||
|
#import <NGExtensions/NSObject+Values.h>
|
||||||
|
|
||||||
#import <EOControl/EOFetchSpecification.h>
|
#import <EOControl/EOFetchSpecification.h>
|
||||||
#import <EOControl/EOQualifier.h>
|
#import <EOControl/EOQualifier.h>
|
||||||
|
@ -38,7 +39,6 @@
|
||||||
|
|
||||||
#import "MAPIStoreTypes.h"
|
#import "MAPIStoreTypes.h"
|
||||||
#import "MAPIStoreGCSFolder.h"
|
#import "MAPIStoreGCSFolder.h"
|
||||||
|
|
||||||
#import "MAPIStoreGCSMessageTable.h"
|
#import "MAPIStoreGCSMessageTable.h"
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
|
@ -89,9 +89,12 @@
|
||||||
|
|
||||||
if (res->ulPropTag == PidTagChangeNumber)
|
if (res->ulPropTag == PidTagChangeNumber)
|
||||||
{
|
{
|
||||||
|
NSString *changeNumber;
|
||||||
|
|
||||||
value = NSObjectFromMAPISPropValue (&res->lpProp);
|
value = NSObjectFromMAPISPropValue (&res->lpProp);
|
||||||
|
changeNumber = [NSString stringWithUnsignedLongLong: [(NSNumber *)value unsignedLongLongValue]];
|
||||||
lastModified = [(MAPIStoreGCSFolder *)
|
lastModified = [(MAPIStoreGCSFolder *)
|
||||||
container lastModifiedFromMessageChangeNumber: value];
|
container lastModifiedFromMessageChangeNumber: changeNumber];
|
||||||
//[self logWithFormat: @"change number from oxcfxics: %.16lx", [value unsignedLongLongValue]];
|
//[self logWithFormat: @"change number from oxcfxics: %.16lx", [value unsignedLongLongValue]];
|
||||||
//[self logWithFormat: @" c_lastmodified: %@", lastModified];
|
//[self logWithFormat: @" c_lastmodified: %@", lastModified];
|
||||||
if (lastModified)
|
if (lastModified)
|
||||||
|
|
Loading…
Reference in a new issue