From de3140697ef293c68587b2b05fb6f45b56c43304 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Sat, 26 Jul 2025 03:59:50 +0300 Subject: [PATCH] fixes --- src/background/background.ts | 2 +- src/components/Group/Forum/NewThread.tsx | 4 ++++ src/components/Save/Save.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/background/background.ts b/src/background/background.ts index da5e65b..138df26 100644 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -869,7 +869,7 @@ export async function getWallets() { let res; if (window?.walletStorage) { res = await window.walletStorage.get('wallets'); - if (!res) { + if (!res || res?.length === 0) { const prevWallets = await getData('wallets').catch(() => null); if (prevWallets) { await window.walletStorage.set('wallets', prevWallets); diff --git a/src/components/Group/Forum/NewThread.tsx b/src/components/Group/Forum/NewThread.tsx index f89e2aa..a61bf85 100644 --- a/src/components/Group/Forum/NewThread.tsx +++ b/src/components/Group/Forum/NewThread.tsx @@ -354,6 +354,10 @@ export const NewThread = ({ const idMsg = uid.rnd(); const identifier = `thmsg-${idThread}-${idMsg}`; + const res = await publishGroupEncryptedResource({ + identifier: identifier, + encryptedData: encryptSinglePost, + }); const dataToSaveToStoragePost = { threadId: idThread, name: myName, diff --git a/src/components/Save/Save.tsx b/src/components/Save/Save.tsx index 49a3761..a229fda 100644 --- a/src/components/Save/Save.tsx +++ b/src/components/Save/Save.tsx @@ -411,7 +411,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => { onClick={saveToQdn} variant="contained" > - {t('core:action.save_qdn', { + {t('core:message.generic.save_qdn', { postProcess: 'capitalizeFirstChar', })}