diff --git a/extension/js/common/platform/store/contact-store.ts b/extension/js/common/platform/store/contact-store.ts index bc02e43bb66..5aa32228b7c 100644 --- a/extension/js/common/platform/store/contact-store.ts +++ b/extension/js/common/platform/store/contact-store.ts @@ -550,7 +550,7 @@ export class ContactStore extends AbstractStore { if (!db) { // relay op through background process // eslint-disable-next-line - return await BrowserMsg.send.bg.await.db({ f: 'getOneWithAllPubkeys', args: [email] }); + return await BrowserMsg.retryOnBgNotReadyErr(() => BrowserMsg.send.bg.await.db({ f: 'getOneWithAllPubkeys', args: [email] })); } const tx = db.transaction(['emails', 'pubkeys', 'revocations'], 'readonly'); const pubkeys: Pubkey[] = []; @@ -608,7 +608,7 @@ export class ContactStore extends AbstractStore { public static async getPubkey(db: IDBDatabase | undefined, { id, family }: KeyIdentity): Promise { if (!db) { // relay op through background process - return (await BrowserMsg.send.bg.await.db({ f: 'getPubkey', args: [{ id, family }] })) as string | undefined; + return (await BrowserMsg.retryOnBgNotReadyErr(() => BrowserMsg.send.bg.await.db({ f: 'getPubkey', args: [{ id, family }] }))) as string | undefined; } const internalFingerprint = ContactStore.getPubkeyId({ id, family }); const tx = db.transaction(['pubkeys'], 'readonly'); diff --git a/package-lock.json b/package-lock.json index 372dba9b8f6..828cdf4fab4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5721,9 +5721,9 @@ } }, "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", "dev": true, "license": "ISC", "dependencies": {