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

+1
View File
@@ -420,6 +420,7 @@ export default abstract class BaseCalendarService implements Calendar {
? event.destinationCalendar.externalId === calendar.url
: false,
integration: this.integrationName,
email: this.credentials.username ?? "",
});
return newCalendars;
}, []);