Fix update of participation status via CalDAV

Fixes #2786
This commit is contained in:
Francis Lachapelle committed 2014-05-28 11:39:25 -04:00
1 parent 9eb075cc3f
commit fac9520f64
2 files changed
+3 -2

No files matched your search

@@ -148,14 +148,14 @@
object = [folder lookupName: nameInContainer
inContext: context
acquire: NO];
if ([object isKindOfClass: [NSException class]])
if ([object isKindOfClass: [NSException class]] || [object isNew])
{
possibleName = [folder resourceNameForEventUID: eventUID];
if (possibleName)
{
object = [folder lookupName: possibleName
inContext: context acquire: NO];
if ([object isKindOfClass: [NSException class]])
if ([object isKindOfClass: [NSException class]] || [object isNew])
object = nil;
}
else