From 91274000ebb6a36cae7fb389cdf4db74eb062118 Mon Sep 17 00:00:00 2001 From: pablof7z Date: Fri, 29 Nov 2024 22:43:22 +0000 Subject: [PATCH] simplify client tag check --- ndk/src/events/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/src/events/index.ts b/ndk/src/events/index.ts index 5dd55e77..9ae3ceb0 100644 --- a/ndk/src/events/index.ts +++ b/ndk/src/events/index.ts @@ -515,7 +515,7 @@ export class NDKEvent extends EventEmitter { (this.ndk?.clientName || this.ndk?.clientNip89) && skipClientTagOnKinds.includes(this.kind!) ) { - if (!this.tags.some((tag) => tag[0] === "client")) { + if (!this.hasTag("client")) { const clientTag: NDKTag = ["client", this.ndk.clientName ?? ""]; if (this.ndk.clientNip89) clientTag.push(this.ndk.clientNip89); tags.push(clientTag);