Monotone-Parent: 8062273942a9de3fcd13c9bb3307488c9a67ec68

Monotone-Revision: d6e6af11a4430fc14c38e245fbaa322775b7b5d7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-25T17:44:35
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-07-25 17:44:35 +00:00
parent e3de4c2f6e
commit 7557403b62
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-07-25 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreDBFolder.m (-createFolder:withFID:andKey:):
invoke "reloadIfNeeded" on the created folder object in order to
initialize it.
2012-07-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreUserContext.m

View File

@ -109,7 +109,7 @@ static NSString *MAPIStoreRightFolderContact = @"RightsFolderContact";
(unsigned long long) newFID];
newFolder = [SOGoMAPIDBFolderK objectWithName: nameInContainer
inContainer: sogoObject];
[newFolder setIsNew: YES];
[newFolder reloadIfNeeded];
[[newFolder properties] setObject: folderName
forKey: MAPIPropertyKey (PidTagDisplayName)];
[newFolder save];
@ -133,6 +133,7 @@ static NSString *MAPIStoreRightFolderContact = @"RightsFolderContact";
fsObject = [SOGoMAPIDBMessage objectWithName: newKey
inContainer: sogoObject];
[fsObject setObjectType: MAPIDBObjectTypeMessage];
[fsObject reloadIfNeeded];
newMessage = [MAPIStoreDBMessage mapiStoreObjectWithSOGoObject: fsObject
inContainer: self];