Startup: If we don't have core data available, show 'link device' screen
This commit is contained in:
parent
419d1ca176
commit
983477c354
1 changed files with 6 additions and 1 deletions
|
@ -1776,7 +1776,12 @@ export async function startApp(): Promise<void> {
|
||||||
window.Whisper.ExpiringMessagesListener.init(window.Whisper.events);
|
window.Whisper.ExpiringMessagesListener.init(window.Whisper.events);
|
||||||
window.Whisper.TapToViewMessagesListener.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();
|
connect();
|
||||||
window.reduxActions.app.openInbox();
|
window.reduxActions.app.openInbox();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue