refactor: root key manager (#2344)
This commit is contained in:
@@ -14,8 +14,8 @@ export class Migration2_0_15 extends Migration {
|
||||
}
|
||||
|
||||
private async createNewDefaultItemsKeyIfNecessary() {
|
||||
if (this.services.protocolService.needsNewRootKeyBasedItemsKey()) {
|
||||
await this.services.protocolService.createNewDefaultItemsKey()
|
||||
if (this.services.encryptionService.needsNewRootKeyBasedItemsKey()) {
|
||||
await this.services.encryptionService.createNewDefaultItemsKey()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user