Fix Google Calendar sharing guest information logic (#7323)

* Fix logic

* Update packages/app-store/googlecalendar/lib/CalendarService.ts

Co-authored-by: alannnc <alannnc@gmail.com>

* Fixed linting

* Add seats logic to reschedule

---------

Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Joe Au-Yeung
2023-03-16 14:50:35 +00:00
committed by GitHub
co-authored by alannnc Keith Williams
parent 358aa8be2b
commit 4308ea8d52
@@ -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) {