Skip to content

Commit

Permalink
fix(eas): make sure there is always an attendee name (fixes #4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Dec 19, 2019
1 parent ee1ffef commit 4ed2c72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ActiveSync/iCalEvent+ActiveSync.m
Expand Up @@ -187,7 +187,10 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) context

attendee = [attendees objectAtIndex: i];
[s appendFormat: @"<Attendee_Email xmlns=\"Calendar:\">%@</Attendee_Email>", [[attendee rfc822Email] activeSyncRepresentationInContext: context]];
[s appendFormat: @"<Attendee_Name xmlns=\"Calendar:\">%@</Attendee_Name>", [[attendee cn] activeSyncRepresentationInContext: context]];
if ([[attendee cn] length])
[s appendFormat: @"<Attendee_Name xmlns=\"Calendar:\">%@</Attendee_Name>", [[attendee cn] activeSyncRepresentationInContext: context]];
else
[s appendFormat: @"<Attendee_Name xmlns=\"Calendar:\">%@</Attendee_Name>", [[attendee rfc822Email] activeSyncRepresentationInContext: context]];

attendee_status = [self _attendeeStatus: attendee];

Expand Down

0 comments on commit 4ed2c72

Please sign in to comment.