mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Prevent showing inbox if secondary device registration is still ongoing
This commit is contained in:
parent
5eab2098b6
commit
415ea7992c
2 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue