fix: Create separate calendar events to hide organizer (#21555)

* Add notes to `EventManager.create`

* Create `CalendarServiceEvent`

* Generate calendar description and remove attendees if event is private in `CalendarManager`

* Process event for reschedule method

* Refactor calendar services

* Clean up comment

* Type fixes

* Type fix

* Type fix
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-05-27 20:46:26 -04:00
1 parent e5868837d5
commit 6f1eaaa02e
10 files changed
+121 -94

No files matched your search

+2 -1
View File
@@ -180,6 +180,7 @@ export default class EventManager {
* @param event
*/
public async create(event: CalendarEvent): Promise<CreateUpdateResult> {
// TODO this method shouldn't be modifying the event object that's passed in
const evt = processLocation(event);
// Fallback to cal video if no location is set
@@ -259,7 +260,7 @@ export default class EventManager {
return result.type.includes("_calendar");
};
const createdCRMEvents = await this.createAllCRMEvents(clonedCalEvent);
const createdCRMEvents = await this.createAllCRMEvents(evt);
results.push(...createdCRMEvents);