Skip to content

Scheduling infrastructure for absolutely everyone.

Fix Google Calendar sharing guest information logic (#7323)

Joe Au-Yeung4308ea8d523e
diff --git a/packages/app-store/googlecalendar/lib/CalendarService.ts b/packages/app-store/googlecalendar/lib/CalendarService.ts
index f977585342a..ada8b2f6fda 100644
--- a/packages/app-store/googlecalendar/lib/CalendarService.ts
+++ b/packages/app-store/googlecalendar/lib/CalendarService.ts
@@ -103,7 +103,7 @@ export default class GoogleCalendarService implements Calendar {
reminders: {
useDefault: true,
},
- guestsCanSeeOtherGuests: calEventRaw.seatsShowAttendees,
+ guestsCanSeeOtherGuests: !!calEventRaw.seatsPerTimeSlot ? calEventRaw.seatsShowAttendees : true,
};
if (calEventRaw.location) {
@@ -193,7 +193,7 @@ export default class GoogleCalendarService implements Calendar {
reminders: {
useDefault: true,
},
- guestsCanSeeOtherGuests: event.seatsShowAttendees,
+ guestsCanSeeOtherGuests: !!event.seatsPerTimeSlot ? event.seatsShowAttendees : true,
};
if (event.location) {