From 02f2789a23d11c0ea0efe90379cdaa617f1aecdb Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 6 Aug 2021 13:49:36 +0200 Subject: [PATCH] fix(@desktop/communities): fix sharing community link fixes #3165 --- ui/app/AppMain.qml | 10 +++++++++- ui/main.qml | 14 +------------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 6579146bbd..049343f431 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -446,7 +446,6 @@ StatusAppLayout { // Add Status links to whitelist whiteListedSites.push({title: "Status", address: Constants.deepLinkPrefix, imageSite: false}) whiteListedSites.push({title: "Status", address: Constants.joinStatusLink, imageSite: false}) - const settings = appSettings.whitelistedUnfurlingSites // Set Status links as true. We intercept thoseURLs so it is privacy-safe @@ -484,6 +483,15 @@ StatusAppLayout { } } + Connections { + target: profileModel + ignoreUnknownSignals: true + enabled: removeMnemonicAfterLogin + onInitialized: { + profileModel.mnemonic.remove() + } + } + Connections { target: profileModel.contacts onContactRequestAdded: { diff --git a/ui/main.qml b/ui/main.qml index 0adf42b1ba..835e90d5fe 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -265,9 +265,7 @@ StatusWindow { DSM.State { id: appState - onEntered: Qt.callLater(function() { - loader.sourceComponent = app - }) + onEntered: loader.sourceComponent = app DSM.SignalTransition { targetState: stateLogin @@ -390,16 +388,6 @@ StatusWindow { } } - Connections { - target: profileModel - ignoreUnknownSignals: true - enabled: removeMnemonicAfterLogin - onInitialized: { - profileModel.mnemonic.remove() - } - } - - Component { id: genKey GenKey {