Make sure to restore registration before relink
This commit is contained in:
parent
b826097237
commit
4a402126b4
1 changed files with 2 additions and 1 deletions
|
@ -3540,7 +3540,6 @@ export async function startApp(): Promise<void> {
|
|||
|
||||
// These two bits of data are important to ensure that the app loads up
|
||||
// the conversation list, instead of showing just the QR code screen.
|
||||
window.Signal.Util.Registration.markEverDone();
|
||||
if (previousNumberId !== undefined) {
|
||||
await window.textsecure.storage.put(NUMBER_ID_KEY, previousNumberId);
|
||||
}
|
||||
|
@ -3570,6 +3569,8 @@ export async function startApp(): Promise<void> {
|
|||
'Something went wrong clearing local configuration',
|
||||
eraseError && eraseError.stack ? eraseError.stack : eraseError
|
||||
);
|
||||
} finally {
|
||||
window.Signal.Util.Registration.markEverDone();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue