Startup: If we don't have core data available, show 'link device' screen
This commit is contained in:
parent
a11e0a3ea0
commit
d7edff196c
|
@ -1781,7 +1781,12 @@ export async function startApp(): Promise<void> {
|
|||
window.Whisper.ExpiringMessagesListener.init(window.Whisper.events);
|
||||
window.Whisper.TapToViewMessagesListener.init(window.Whisper.events);
|
||||
|
||||
if (window.Signal.Util.Registration.everDone()) {
|
||||
const isCoreDataValid = Boolean(
|
||||
window.textsecure.storage.user.getUuid() &&
|
||||
window.ConversationController.getOurConversation()
|
||||
);
|
||||
|
||||
if (isCoreDataValid && window.Signal.Util.Registration.everDone()) {
|
||||
connect();
|
||||
window.reduxActions.app.openInbox();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue