mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Startup: If we don't have core data available, show 'link device' screen
This commit is contained in:
@@ -1776,7 +1776,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 {
|
||||
|
||||
Reference in New Issue
Block a user