fix nostr send

This commit is contained in:
boufni95 2025-04-01 19:45:09 +00:00
parent bd10b02d88
commit 98ad3be9ef

View file

@ -93,6 +93,14 @@ class TlvFilesStorageProcessor {
throw new Error('Unknown metric type: ' + t) throw new Error('Unknown metric type: ' + t)
} }
}) })
this.wrtc.attachNostrSend((initiator: SendInitiator, data: SendData, relays?: string[] | undefined) => {
this.sendResponse({
success: true,
type: 'nostrSend',
data: { initiator, data, relays },
opId: Math.random().toString()
});
})
} }
private async handleOperation(operation: TlvStorageOperation) { private async handleOperation(operation: TlvStorageOperation) {