Skip to content

Commit 4dbacda

Browse files
fix: test
1 parent 42ac253 commit 4dbacda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/js/common/platform/store/contact-store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class ContactStore extends AbstractStore {
550550
if (!db) {
551551
// relay op through background process
552552
// eslint-disable-next-line
553-
return await BrowserMsg.send.bg.await.db({ f: 'getOneWithAllPubkeys', args: [email] });
553+
return await BrowserMsg.retryOnBgNotReadyErr(() => BrowserMsg.send.bg.await.db({ f: 'getOneWithAllPubkeys', args: [email] }));
554554
}
555555
const tx = db.transaction(['emails', 'pubkeys', 'revocations'], 'readonly');
556556
const pubkeys: Pubkey[] = [];
@@ -608,7 +608,7 @@ export class ContactStore extends AbstractStore {
608608
public static async getPubkey(db: IDBDatabase | undefined, { id, family }: KeyIdentity): Promise<string | undefined> {
609609
if (!db) {
610610
// relay op through background process
611-
return (await BrowserMsg.send.bg.await.db({ f: 'getPubkey', args: [{ id, family }] })) as string | undefined;
611+
return (await BrowserMsg.retryOnBgNotReadyErr(() => BrowserMsg.send.bg.await.db({ f: 'getPubkey', args: [{ id, family }] }))) as string | undefined;
612612
}
613613
const internalFingerprint = ContactStore.getPubkeyId({ id, family });
614614
const tx = db.transaction(['pubkeys'], 'readonly');

0 commit comments

Comments
 (0)