File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extension/js/common/platform/store Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments