No more type passed to removeAllConfiguration; keep more UI keys

This commit is contained in:
Scott Nonnenberg 2023-11-13 14:01:27 -08:00 committed by GitHub
parent 046a3c4849
commit d7177516c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 51 deletions

View file

@ -24,7 +24,6 @@ import ProvisioningCipher from './ProvisioningCipher';
import type { IncomingWebSocketRequest } from './WebsocketResources';
import createTaskWithTimeout from './TaskWithTimeout';
import * as Bytes from '../Bytes';
import { RemoveAllConfiguration } from '../types/RemoveAllConfiguration';
import * as Errors from '../types/errors';
import { senderCertificateService } from '../services/senderCertificate';
import {
@ -1043,10 +1042,8 @@ export default class AccountManager extends EventTarget {
);
}
} else {
log.info('createAccount: Erasing configuration (soft)');
await storage.protocol.removeAllConfiguration(
RemoveAllConfiguration.Soft
);
log.info('createAccount: Erasing configuration');
await storage.protocol.removeAllConfiguration();
}
await senderCertificateService.clear();