oc: use activate instead of activateWithUser

100% of the times the user is the one that MAPIStoreUserContext
already has, so no need to have it as an argument.
This commit is contained in:
Jesús García Sáez committed 2015-07-15 11:26:05 +02:00
1 parent 3bf7afdfb7
commit 7d2f96e96b
6 files changed
+11 -20

No files matched your search

+1 -5
View File
@@ -63,19 +63,15 @@
SOGoAppointmentObject *newEntry;
NSString *name;
//[self logWithFormat: @"METHOD '%s' (%d)", __FUNCTION__, __LINE__];
[[self userContext] activate];
name = [NSString stringWithFormat: @"%@.ics",
[SOGoObject globallyUniqueObjectId]];
newEntry = [SOGoAppointmentObject objectWithName: name
inContainer: sogoObject];
[newEntry setIsNew: YES];
/* the WOContext is required here for resolving notification pages */
[newEntry setContext: [[self userContext] woContext]];
newMessage = [MAPIStoreCalendarMessage mapiStoreObjectWithSOGoObject: newEntry
inContainer: self];
return newMessage;
}