oc-calendar: Fix recipient type for invitations
Take into account optional attendees setting the recipient type to MAPI_CC when they have the iCal role set to OPT-PARTICIPANT instead of harding always MAPI_TO (required) as was done before. This is a complementary fix for: https://github.com/Zentyal/sogo/pull/108
This commit is contained in:
parent
a8e8ec535a
commit
539060d252
|
@ -273,7 +273,7 @@ static NSCharacterSet *hexCharacterSet = nil;
|
||||||
recipient->username = NULL;
|
recipient->username = NULL;
|
||||||
entryId = MAPIStoreExternalEntryId (cn, email);
|
entryId = MAPIStoreExternalEntryId (cn, email);
|
||||||
}
|
}
|
||||||
recipient->type = MAPI_TO;
|
recipient->type = [[person role] isEqualToString: @"OPT-PARTICIPANT"] ? MAPI_CC : MAPI_TO;
|
||||||
|
|
||||||
/* properties */
|
/* properties */
|
||||||
p = 0;
|
p = 0;
|
||||||
|
|
Loading…
Reference in a new issue