Prevent showing inbox if secondary device registration is still ongoing

This commit is contained in:
sachaaaaa 2019-08-27 14:02:11 +10:00
parent 5eab2098b6
commit 415ea7992c
2 changed files with 7 additions and 1 deletions

View file

@ -587,7 +587,10 @@
if (Whisper.Import.isIncomplete()) {
window.log.info('Import was interrupted, showing import error screen');
appView.openImporter();
} else if (Whisper.Registration.everDone()) {
} else if (
Whisper.Registration.everDone() &&
!Whisper.Registration.ongoingSecondaryDeviceRegistration()
) {
// listeners
Whisper.RotateSignedPreKeyListener.init(Whisper.events, newVersion);
// window.Signal.RefreshSenderCertificate.initialize({

View file

@ -21,6 +21,9 @@
storage.get('chromiumRegistrationDone') === ''
);
},
ongoingSecondaryDeviceRegistration() {
return storage.get('secondaryDeviceStatus') === 'ongoing';
},
remove() {
storage.remove('chromiumRegistrationDone');
},