Fix app init wait for backup on first link

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
ayumi-signal 2024-10-03 11:00:22 -07:00 committed by GitHub
parent f8041ee1a4
commit 5e767d45a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -899,6 +899,7 @@ export default class AccountManager extends EventTarget {
private async createAccount(
options: CreateAccountOptionsType
): Promise<void> {
this.dispatchEvent(new Event('startRegistration'));
const registrationBaton = this.server.startRegistration();
try {
await this.doCreateAccount(options);