diff --git a/packages/emails/templates/attendee-scheduled-email.ts b/packages/emails/templates/attendee-scheduled-email.ts index 0d22891118..7d7d672ea8 100644 --- a/packages/emails/templates/attendee-scheduled-email.ts +++ b/packages/emails/templates/attendee-scheduled-email.ts @@ -114,7 +114,7 @@ ${this.t( )} ${this.t(subtitle)} -${getRichDescription(this.calEvent, this.t)} +${getRichDescription(this.calEvent, this.t, true)} `.trim(); } diff --git a/packages/emails/templates/broken-integration-email.ts b/packages/emails/templates/broken-integration-email.ts index 12d7800a89..28b92c1bde 100644 --- a/packages/emails/templates/broken-integration-email.ts +++ b/packages/emails/templates/broken-integration-email.ts @@ -53,7 +53,7 @@ ${this.t( )} ${this.t(subtitle)} ${extraInfo} -${getRichDescription(this.calEvent)} +${getRichDescription(this.calEvent, this.t, true)} ${callToAction} `.trim(); } diff --git a/packages/emails/templates/organizer-requested-to-reschedule-email.ts b/packages/emails/templates/organizer-requested-to-reschedule-email.ts index 7a601af696..c0b0c2847c 100644 --- a/packages/emails/templates/organizer-requested-to-reschedule-email.ts +++ b/packages/emails/templates/organizer-requested-to-reschedule-email.ts @@ -88,7 +88,7 @@ export default class OrganizerRequestedToRescheduleEmail extends OrganizerSchedu ${this.t(title)} ${this.t(subtitle)} ${extraInfo} -${getRichDescription(this.calEvent)} +${getRichDescription(this.calEvent, this.t, true)} ${callToAction} `.trim(); } diff --git a/packages/emails/templates/organizer-scheduled-email.ts b/packages/emails/templates/organizer-scheduled-email.ts index 76b036252e..a9dd9b8d07 100644 --- a/packages/emails/templates/organizer-scheduled-email.ts +++ b/packages/emails/templates/organizer-scheduled-email.ts @@ -105,7 +105,7 @@ ${this.t( )} ${this.t(subtitle)} ${extraInfo} -${getRichDescription(this.calEvent)} +${getRichDescription(this.calEvent, this.t, true)} ${callToAction} `.trim(); } diff --git a/packages/lib/CalEventParser.ts b/packages/lib/CalEventParser.ts index 29ac3ab171..55c569fcc3 100644 --- a/packages/lib/CalEventParser.ts +++ b/packages/lib/CalEventParser.ts @@ -176,7 +176,11 @@ export const getRescheduleLink = (calEvent: CalendarEvent): string => { return `${calEvent.bookerUrl ?? WEBAPP_URL}/reschedule/${seatUid ? seatUid : Uid}`; }; -export const getRichDescription = (calEvent: CalendarEvent, t_?: TFunction /*, attendee?: Person*/) => { +export const getRichDescription = ( + calEvent: CalendarEvent, + t_?: TFunction /*, attendee?: Person*/, + includeAppStatus = false +) => { const t = t_ ?? calEvent.organizer.language.translate; return ` @@ -189,7 +193,7 @@ ${getLocation(calEvent)} ${getDescription(calEvent, t)} ${getAdditionalNotes(calEvent, t)} ${getUserFieldsResponses(calEvent)} -${getAppsStatus(calEvent, t)} +${includeAppStatus ? getAppsStatus(calEvent, t) : ""} ${ // TODO: Only the original attendee can make changes to the event // Guests cannot