mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
No more type passed to removeAllConfiguration; keep more UI keys
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user