Prevent showing inbox if secondary device registration is still ongoing

pull/439/head
sachaaaaa 6 years ago
parent 5eab2098b6
commit 415ea7992c

@ -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({

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

Loading…
Cancel
Save