From 0b132624fffe5276b7aa7bdfa88120a8f48c99cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Fri, 27 Feb 2026 17:14:00 +0100 Subject: [PATCH] fix: pluralization --- src/lib/chat/adapters/nip-29-adapter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/chat/adapters/nip-29-adapter.ts b/src/lib/chat/adapters/nip-29-adapter.ts index 7c868c4..80c294b 100644 --- a/src/lib/chat/adapters/nip-29-adapter.ts +++ b/src/lib/chat/adapters/nip-29-adapter.ts @@ -1105,9 +1105,10 @@ export class Nip29Adapter extends ChatProtocolAdapter { let content = ""; if (event.kind === 9000) { // put-user: admin adds someone - // If p-tag has a role (3rd element), show "is now " instead of "joined" + // If p-tag has a role (3rd element), show "is/are now " instead of "joined" const role = pTags[0]?.[2]; - content = role ? `is now ${role}` : "joined"; + const verb = pTags.length > 1 ? "are" : "is"; + content = role ? `${verb} now ${role}` : "joined"; } else if (event.kind === 9001) { // remove-user: admin removes someone content = "left";