fix: show email in outlook (#5897)

* fix: change external id to owner address

Signed-off-by: Udit Takkar <[email protected]>

* feat: add email prop in calendar

Signed-off-by: Udit Takkar <[email protected]>

* fix: only display for outlook

Signed-off-by: Udit Takkar <[email protected]>

* fix: add email for apple calendar

Signed-off-by: Udit Takkar <[email protected]>

* fix: type error and use description

Signed-off-by: Udit Takkar <[email protected]>

* fix: try  using email from /me endpoint

Signed-off-by: Udit Takkar <[email protected]>

* fix: fallback to principal name when mail is not there

Signed-off-by: Udit Takkar <[email protected]>

* chore: use empty string for fallback

Signed-off-by: Udit Takkar <[email protected]>

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-12-20 21:50:20 +00:00
1 parent 9487819ec1
commit 2d9064e92f
7 files changed
+17 -3

No files matched your search

@@ -102,7 +102,9 @@ const DestinationCalendarSelector = ({
query.data.connectedCalendars.map((selectedCalendar) => ({
key: selectedCalendar.credentialId,
label: `${selectedCalendar.integration.title?.replace(/calendar/i, "")} (${
selectedCalendar.primary?.name
selectedCalendar.primary?.integration === "office365_calendar"
? selectedCalendar.primary?.email
: selectedCalendar.primary?.name
})`,
options: (selectedCalendar.calendars ?? [])
.filter((cal) => cal.readOnly === false)