Skip to content

Commit

Permalink
simplify client tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Nov 29, 2024
1 parent c5390d4 commit 9127400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndk/src/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9127400

Please sign in to comment.