Files
Udit TakkarandGitHub 0b59a5d184 fix: encoding bug (#21004)
* fix: encoding bug

* fix: use escapeValue
2025-04-28 14:56:12 +00:00

26 lines
701 B
TypeScript

import type { CalendarEvent, Person } from "@calcom/types/Calendar";
import SMSManager from "../sms-manager";
export default class EventDeclinedSMS extends SMSManager {
constructor(calEvent: CalendarEvent) {
super(calEvent);
}
getMessage(attendee: Person) {
const t = attendee.language.translate;
const eventDeclinedText = t("event_declined_subject", {
title: this.calEvent.title,
date: this.getFormattedDate(attendee.timeZone, attendee.language.locale),
interpolation: { escapeValue: false },
});
const messageText = `${t("hey_there")} ${attendee.name}, ${t(
"event_request_declined"
)} ${eventDeclinedText}`;
return messageText;
}
}