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/108pull/79/head^2
parent
a8e8ec535a
commit
539060d252
|
@ -273,7 +273,7 @@ static NSCharacterSet *hexCharacterSet = nil;
|
|||
recipient->username = NULL;
|
||||
entryId = MAPIStoreExternalEntryId (cn, email);
|
||||
}
|
||||
recipient->type = MAPI_TO;
|
||||
recipient->type = [[person role] isEqualToString: @"OPT-PARTICIPANT"] ? MAPI_CC : MAPI_TO;
|
||||
|
||||
/* properties */
|
||||
p = 0;
|
||||
|
|
Loading…
Reference in New Issue