fix: make user profile images in context menu and popup work again

This commit is contained in:
Pascal Precht 2021-10-29 13:39:17 +02:00 committed by Iuri Matias
parent d814484c72
commit d6366edb9e
2 changed files with 8 additions and 8 deletions

View File

@ -130,7 +130,7 @@ Item {
if(parentPopup){
popup.parentPopup = parentPopup;
}
popup.openPopup(profileModel.profile.pubKey !== fromAuthorParam, userNameParam, fromAuthorParam, identiconParam, textParam, nicknameParam);
popup.openPopup(profileModule.pubKey !== fromAuthorParam, userNameParam, fromAuthorParam, identiconParam, textParam, nicknameParam);
profilePopupOpened = true
}
@ -353,7 +353,7 @@ Item {
navBarProfileButton: StatusNavBarTabButton {
id: profileButton
property bool opened: false
icon.source: profileModel.profile.thumbnailImage || ""
icon.source: profileModule.thumbnailImage || ""
badge.visible: true
badge.anchors.rightMargin: 4
badge.anchors.topMargin: 25

View File

@ -29,7 +29,7 @@ PopupMenu {
anchors.top: parent.top
anchors.topMargin: 4
anchors.horizontalCenter: parent.horizontalCenter
image.source: profileModel.profile.thumbnailImage || ""
image.source: profileModule.thumbnailImage || ""
image.isIdenticon: true
}
StyledText {
@ -70,7 +70,7 @@ PopupMenu {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
openProfilePopup(profileModel.profile.username, profileModel.profile.pubKey, profileModel.profile.thumbnailImage || "");
openProfilePopup(profileModule.username, profileModule.pubKey, profileModule.thumbnailImage || "");
root.close()
}
}
@ -85,8 +85,8 @@ PopupMenu {
Action {
text: qsTr("Online")
onTriggered: {
if (profileModel.profile.sendUserStatus != true) {
profileModel.setSendUserStatus(true)
if (profileModule.sendUserStatus != true) {
profileModule.setSendUserStatus(true)
}
root.close()
}
@ -99,8 +99,8 @@ PopupMenu {
Action {
text: qsTr("Offline")
onTriggered: {
if (profileModel.profile.sendUserStatus != false) {
profileModel.setSendUserStatus(false)
if (profileModule.sendUserStatus != false) {
profileModule.setSendUserStatus(false)
}
root.close()
}