Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extension/js/common/platform/store/contact-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down Expand Up @@ -608,7 +608,7 @@ export class ContactStore extends AbstractStore {
public static async getPubkey(db: IDBDatabase | undefined, { id, family }: KeyIdentity): Promise<string | undefined> {
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');
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading