Suppress comment notifications when viewing document (#4987)

* Updating views from collaboration server

* refactor

* Suppress comment notifications based on views

* test
This commit is contained in:
Tom Moor
2023-03-05 21:33:46 -05:00
committed by GitHub
parent f9709897fe
commit 591a87b728
7 changed files with 138 additions and 27 deletions

View File

@@ -90,7 +90,7 @@ export default class CommentCreatedEmail extends BaseEmail<
collectionName,
}: Props): string {
return `
${actorName} ${isReply ? "replied in" : "commented on"} the document "${
${actorName} ${isReply ? "replied to a thread in" : "commented on"} "${
document.title
}", in the ${collectionName} collection.
@@ -117,7 +117,7 @@ Open Thread: ${teamUrl}${document.url}?commentId=${commentId}
<Body>
<Heading>{document.title}</Heading>
<p>
{actorName} {isReply ? "replied in" : "commented on"} the document{" "}
{actorName} {isReply ? "replied to a thread in" : "commented on"}{" "}
<a href={link}>{document.title}</a>, in the {collectionName}{" "}
collection.
</p>