Event details UI improvements.

This commit is contained in:
Burak Kaan Köse
2026-01-01 10:07:56 +01:00
parent e71c050724
commit 3b485dc1fe
14 changed files with 311 additions and 113 deletions
@@ -170,7 +170,9 @@ public class OutlookChangeProcessor(IDatabaseService databaseService,
List<CalendarEventAttendee> attendees = null;
if (calendarEvent.Attendees != null)
{
attendees = calendarEvent.Attendees.Select(a => a.CreateAttendee(savingItemId)).ToList();
// Pass the organizer's email address to properly identify the organizer in the attendees list
string organizerEmail = calendarEvent.Organizer?.EmailAddress?.Address;
attendees = calendarEvent.Attendees.Select(a => a.CreateAttendee(savingItemId, organizerEmail)).ToList();
}
// Use CalendarService to create or update the event