From 618ae682bc89c427d9ff563c62fed4ff7ddece46 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Thu, 20 Feb 2025 11:24:24 +0100 Subject: [PATCH] Fix `review.edit` compressed notification summary Instead of saying `edited 6 reviews` we should say `edited review 6 times` --- src/lib/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/notification.ts b/src/lib/notification.ts index deb6553b1..1589c9962 100644 --- a/src/lib/notification.ts +++ b/src/lib/notification.ts @@ -103,7 +103,7 @@ export function createSummary( } else if (lastAction.type === "review.comment.unresolve") { summary = `unresolved ${count > 1 ? count : "a"} review ${pluralize("comment", count)}`; } else if (lastAction.type === "review.edit") { - summary = `edited ${count > 1 ? count : "a"} ${pluralize("review", count)}`; + summary = `edited review ${times(count)}`; } else if (lastAction.type === "review.redact") { summary = `redacted ${count > 1 ? count : "a"} ${pluralize("review", count)}`; } else if (lastAction.type === "revision.comment.react") {