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 10:50:35 -04:00 committed by GitHub
parent 358aa8be2b
commit 4308ea8d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {