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

@@ -194,7 +194,10 @@ describe("revisions.create", () => {
teamId: collaborator.teamId,
event: "documents.update",
});
await View.touch(document.id, collaborator.id, true);
await View.create({
userId: collaborator.id,
documentId: document.id,
});
const processor = new NotificationsProcessor();
await processor.perform({
@@ -581,7 +584,10 @@ describe("revisions.create", () => {
teamId: collaborator.teamId,
event: "documents.update",
});
await View.touch(document.id, collaborator.id, true);
await View.create({
userId: collaborator.id,
documentId: document.id,
});
const processor = new NotificationsProcessor();