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:
José Antonio Calvo 2015-04-16 09:34:43 +02:00 committed by Jesús García Sáez
parent a8e8ec535a
commit 539060d252

View file

@ -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;