updated note connector

This commit is contained in:
Ren Amamiya
2023-04-06 09:49:46 +07:00
parent 5437ec5c92
commit 365ec3df88
2 changed files with 7 additions and 5 deletions

View File

@@ -49,9 +49,12 @@ export default function NoteConnector() {
parent_comment_id: '',
created_at: event.created_at,
account_id: activeAccount.id,
}).catch(console.error);
// notify user reload to get newer note
setHasNewerNote(true);
})
.then(() =>
// notify user reload to get newer note
setHasNewerNote(true)
)
.catch(console.error);
}
);
}, [pool, relays, setHasNewerNote]);