Bug fix the bug fix

This commit is contained in:
2023-01-14 00:21:05 +00:00
parent 5046ab73ff
commit f4dca89c05

View File

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