Fix Google Calendar sharing guest information logic (#7323)

* Fix logic

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

Co-authored-by: alannnc <[email protected]>

* Fixed linting

* Add seats logic to reschedule

---------

Co-authored-by: alannnc <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-03-16 14:50:35 +00:00
1 parent 358aa8be2b
commit 4308ea8d52
1 file changed
+2 -2
@@ -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) {