Skip to content

Commit

Permalink
fix(Onboarding): Image is visible after first onboard. Other minor fi…
Browse files Browse the repository at this point in the history
…xes (#10489)
  • Loading branch information
igor-sirotin authored May 2, 2023
1 parent f1633d3 commit 3ff97c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
5 changes: 3 additions & 2 deletions src/app/modules/startup/module.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
13 changes: 1 addition & 12 deletions ui/app/AppLayouts/Onboarding/views/InsertDetailsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ui/app/AppLayouts/Profile/stores/ProfileStore.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion ui/imports/utils/Utils.qml
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ QtObject {

function isEnsVerified(publicKey) {
if (publicKey === "" || !isChatKey(publicKey) )
return
return false
if (!mainModuleInst)
return false
return mainModuleInst.isEnsVerified(publicKey)
}

Expand Down

0 comments on commit 3ff97c9

Please sign in to comment.