Bug fix the bug fix
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user