fix: custom team email subject (#1450)

Fixed issue where custom email subjects for teams were being ignored.
This commit is contained in:
David Nguyen
2024-11-06 22:16:31 +09:00
committed by GitHub
parent ffc61af904
commit 61ea4971ad
2 changed files with 21 additions and 11 deletions

View File

@ -115,9 +115,11 @@ export const SEND_SIGNING_EMAIL_JOB_DEFINITION = {
if (isTeamDocument && team) {
emailSubject = i18n._(msg`${team.name} invited you to ${recipientActionVerb} a document`);
emailMessage = i18n._(
msg`${user.name} on behalf of ${team.name} has invited you to ${recipientActionVerb} the document "${document.title}".`,
);
emailMessage =
customEmail?.message ||
i18n._(
msg`${user.name} on behalf of ${team.name} has invited you to ${recipientActionVerb} the document "${document.title}".`,
);
}
const customEmailTemplate = {