fix: decode characters if encoded (#6447)

This commit is contained in:
Nafees Nazik
2023-01-25 09:44:48 +00:00
committed by GitHub
parent b1c0ea4c38
commit d77e4f3c4a
2 changed files with 4 additions and 2 deletions
@@ -73,7 +73,7 @@ export default class AttendeeScheduledEmail extends BaseEmail {
to: `${this.attendee.name} <${this.attendee.email}>`,
from: `${this.calEvent.organizer.name} <${this.getMailerOptions().from}>`,
replyTo: [...this.calEvent.attendees.map(({ email }) => email), this.calEvent.organizer.email],
subject: `${this.calEvent.title}`,
subject: decodeURIComponent(`${this.calEvent.title}`),
html: renderEmail("AttendeeScheduledEmail", {
calEvent: this.calEvent,
attendee: this.attendee,
@@ -73,7 +73,9 @@ export default class OrganizerScheduledEmail extends BaseEmail {
},
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
to: toAddresses.join(","),
subject: `${this.newSeat ? this.t("new_attendee") + ":" : ""} ${this.calEvent.title}`,
subject: decodeURIComponent(
`${this.newSeat ? this.t("new_attendee") + ":" : ""} ${this.calEvent.title}`
),
html: renderEmail("OrganizerScheduledEmail", {
calEvent: this.calEvent,
attendee: this.calEvent.organizer,