fix nip7 sendDm

This commit is contained in:
Kieran 2023-01-14 00:17:45 +00:00
parent 593c8a4fa9
commit 5046ab73ff
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -179,7 +179,8 @@ export default function useEventPublisher() {
try {
if (hasNip07 && !privKey) {
let ev = await barierNip07(() => window.nostr.nip04.encrypt(to, content));
let content = await barierNip07(() => window.nostr.nip04.encrypt(to, content));
ev.Content = content;
return await signEvent(ev);
} else if(privKey) {
await ev.EncryptDmForPubkey(to, privKey);