Tweaks, do not send mention and document updated emails to one user

This commit is contained in:
Tom Moor
2023-03-06 18:08:17 -05:00
parent de031b365c
commit 4ba5d0d8e0
2 changed files with 50 additions and 39 deletions

View File

@@ -37,14 +37,18 @@ export default class MentionNotificationEmail extends BaseEmail<
return { document };
}
protected subject({ actorName, document }: Props) {
return `${actorName} mentioned you in "${document.title}"`;
protected subject({ document }: Props) {
return `Mentioned you in ${document.title}`;
}
protected preview({ actorName }: Props): string {
return `${actorName} mentioned you`;
}
protected fromName({ actorName }: Props) {
return actorName;
}
protected renderAsText({
actorName,
teamUrl,
@@ -54,7 +58,7 @@ export default class MentionNotificationEmail extends BaseEmail<
return `
You were mentioned
${actorName} mentioned you in the document "${document.title}".
${actorName} mentioned you in the document ${document.title}.
Open Document: ${teamUrl}${document.url}?mentionId=${mentionId}
`;