Skip to content

Commit

Permalink
fix: use version in subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Dec 13, 2024
1 parent cb35116 commit e85f79c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/NWCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,13 @@ export class NWCClient {
while (subscribed) {
try {
await this._checkConnected();

await this._checkCompatibility();
sub = this.relay.subscribe(
[
{
kinds: [...(this.supportedVersion ? [23196] : [23197])],
kinds: [
...(this.supportedVersion === "0.0" ? [23196] : [23197]),
],
authors: [this.walletPubkey],
"#p": [this.publicKey],
},
Expand Down

0 comments on commit e85f79c

Please sign in to comment.