fix(Onboarding): Image is visible after first onboard. Other minor fixes (#10489)

This commit is contained in:
Igor Sirotin 2023-05-02 16:37:31 +03:00 committed by GitHub
parent f1633d3f42
commit 3ff97c9137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 17 deletions

View File

@ -407,7 +407,8 @@ method onNodeLogin*[T](self: Module[T], error: string) =
self.logoutAndDisplayError(err, StartupErrorType.UnknownType)
return
if currStateObj.flowType() != FlowType.AppLogin:
discard self.controller.storeIdentityImage()
let images = self.controller.storeIdentityImage()
self.accountsService.updateLoggedInAccount(self.getDisplayName, images)
self.delegate.finishAppLoading()
else:
self.moveToStartupState()
@ -514,4 +515,4 @@ method onLocalPairingStatusUpdate*[T](self: Module[T], status: LocalPairingStatu
self.view.onLocalPairingStatusUpdate(status)
method onReencryptionProcessStarted*[T](self: Module[T]) =
self.view.onReencryptionProcessStarted()
self.view.onReencryptionProcessStarted()

View File

@ -148,18 +148,7 @@ Item {
input.edit.objectName: "onboardingDisplayNameInput"
width: parent.width
placeholderText: qsTr("Display name")
input.rightComponent: RoundedIcon {
width: 14
height: 14
iconWidth: 14
iconHeight: 14
visible: (nameInput.input.text.length > 0)
color: "transparent"
source: Style.svg("close-filled")
onClicked: {
nameInput.input.edit.clear();
}
}
input.clearable: true
errorMessageCmp.wrapMode: Text.NoWrap
errorMessageCmp.horizontalAlignment: Text.AlignHCenter
validators: Constants.validators.displayName

View File

@ -15,8 +15,8 @@ QtObject {
property string icon: !!Global.userProfile? Global.userProfile.icon : ""
property bool userDeclinedBackupBanner: Global.appIsReady? localAccountSensitiveSettings.userDeclinedBackupBanner : false
property var privacyStore: profileSectionModule.privacyModule
readonly property string keyUid: userProfile.keyUid
readonly property bool isKeycardUser: userProfile.isKeycardUser
readonly property string keyUid: !!Global.userProfile ? Global.userProfile.keyUid : ""
readonly property bool isKeycardUser: !!Global.userProfile ? Global.userProfile.isKeycardUser : false
readonly property string bio: profileModule.bio
readonly property string socialLinksJson: profileModule.socialLinksJson

View File

@ -435,7 +435,9 @@ QtObject {
function isEnsVerified(publicKey) {
if (publicKey === "" || !isChatKey(publicKey) )
return
return false
if (!mainModuleInst)
return false
return mainModuleInst.isEnsVerified(publicKey)
}