Bug fix the bug fix

This commit is contained in:
Kieran 2023-01-14 00:21:05 +00:00
parent 5046ab73ff
commit f4dca89c05
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

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