Ensure storage is ready before starting sender certificate service
This commit is contained in:
parent
1ca121aef5
commit
2ee5f57516
1 changed files with 8 additions and 6 deletions
|
@ -31,6 +31,7 @@ export async function startApp(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.textsecure.protobuf.onLoad(() => {
|
window.textsecure.protobuf.onLoad(() => {
|
||||||
|
window.storage.onready(() => {
|
||||||
senderCertificateService.initialize({
|
senderCertificateService.initialize({
|
||||||
WebAPI: window.WebAPI,
|
WebAPI: window.WebAPI,
|
||||||
navigator,
|
navigator,
|
||||||
|
@ -39,6 +40,7 @@ export async function startApp(): Promise<void> {
|
||||||
storage: window.storage,
|
storage: window.storage,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
const eventHandlerQueue = new window.PQueue({
|
const eventHandlerQueue = new window.PQueue({
|
||||||
concurrency: 1,
|
concurrency: 1,
|
||||||
|
|
Loading…
Reference in a new issue