Skip to content

Commit

Permalink
Storage/getItemsState: Warn if not ready, log on success as well
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Sep 2, 2022
1 parent 6c9848e commit 6dd2b73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ts/textsecure/Storage.ts
Expand Up @@ -122,6 +122,12 @@ export class Storage implements StorageInterface {
}

public getItemsState(): Partial<Access> {
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.
Expand Down

0 comments on commit 6dd2b73

Please sign in to comment.