mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Refactor app initialization logic
This commit is contained in:
@@ -1188,7 +1188,13 @@ export default class AccountManager extends EventTarget {
|
||||
|
||||
await storage.put('identityKeyMap', identityKeyMap);
|
||||
await storage.put('registrationIdMap', registrationIdMap);
|
||||
|
||||
await ourProfileKeyService.set(profileKey);
|
||||
const me = window.ConversationController.getOurConversationOrThrow();
|
||||
await me.setProfileKey(Bytes.toBase64(profileKey), {
|
||||
reason: 'registration',
|
||||
});
|
||||
|
||||
if (userAgent) {
|
||||
await storage.put('userAgent', userAgent);
|
||||
}
|
||||
@@ -1351,7 +1357,7 @@ export default class AccountManager extends EventTarget {
|
||||
|
||||
async #registrationDone(): Promise<void> {
|
||||
log.info('registration done');
|
||||
this.dispatchEvent(new Event('registration'));
|
||||
this.dispatchEvent(new Event('endRegistration'));
|
||||
}
|
||||
|
||||
async setPni(
|
||||
|
||||
Reference in New Issue
Block a user