No more type passed to removeAllConfiguration; keep more UI keys
This commit is contained in:
parent
046a3c4849
commit
d7177516c1
7 changed files with 31 additions and 51 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue