Ensure storage is ready before starting sender certificate service
This commit is contained in:

committed by
Scott Nonnenberg

parent
1ca121aef5
commit
2ee5f57516
@@ -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,
|
||||||
|
Reference in New Issue
Block a user