fix nip7 sendDm
This commit is contained in:
parent
593c8a4fa9
commit
5046ab73ff
@ -179,7 +179,8 @@ export default function useEventPublisher() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (hasNip07 && !privKey) {
|
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);
|
return await signEvent(ev);
|
||||||
} else if(privKey) {
|
} else if(privKey) {
|
||||||
await ev.EncryptDmForPubkey(to, privKey);
|
await ev.EncryptDmForPubkey(to, privKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user