mirror of
https://github.com/nostr-connect/connect.git
synced 2025-12-17 13:14:20 +01:00
skip seen on relay.publish on response
This commit is contained in:
10
src/rpc.ts
10
src/rpc.ts
@@ -157,15 +157,7 @@ export class NostrRPC {
|
||||
);
|
||||
|
||||
// send response via relay
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const pub = relay.publish(responseEvent);
|
||||
pub.on('failed', (reason: any) => {
|
||||
reject(reason);
|
||||
});
|
||||
pub.on('seen', () => {
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
relay.publish(responseEvent);
|
||||
});
|
||||
|
||||
return sub;
|
||||
|
||||
Reference in New Issue
Block a user