This commit is contained in:
2023-10-18 14:49:20 +07:00
parent 489ab6bd0b
commit 939a72f945
47 changed files with 389 additions and 293 deletions

View File

@@ -11,7 +11,7 @@ export function useDecryptMessage(message: NDKEvent) {
useEffect(() => {
async function decryptContent() {
try {
const privkey = await db.secureLoad();
const privkey = await db.secureLoad(db.account.pubkey);
const sender =
db.account.pubkey === message.pubkey
? message.tags.find((el) => el[0] === 'p')[1]