fix(calendar): ensure valid identity when sending invitations

This commit is contained in:
Francis Lachapelle committed 2020-07-06 12:43:56 -04:00
1 parent c99170b9bc
commit c2d937746f
3 files changed
+3 -3

No files matched your search

@@ -828,7 +828,7 @@
// No organizer, grab the event's owner
if (![senderEmail length])
senderEmail = shortSenderEmail = [[ownerUser defaultIdentity] objectForKey: @"email"];
senderEmail = shortSenderEmail = [[ownerUser primaryIdentity] objectForKey: @"email"];
/* calendar part */
eventBodyPart = [self _bodyPartForICalObject: object];