diff --git a/ts/textsecure/Storage.ts b/ts/textsecure/Storage.ts index 4470d44ba..28c7b0d27 100644 --- a/ts/textsecure/Storage.ts +++ b/ts/textsecure/Storage.ts @@ -122,6 +122,12 @@ export class Storage implements StorageInterface { } public getItemsState(): Partial { + if (!this.ready) { + log.warn('Called getItemsState before storage is ready'); + } + + log.info('Storage/getItemsState: now preparing copy of items...'); + const state = Object.create(null); // TypeScript isn't smart enough to figure out the types automatically.