mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Storage/getItemsState: Warn if not ready, log on success as well
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user