summary refs log tree commit diff
path: root/resources/qml/UserProfile.qml
diff options
context:
space:
mode:
authorCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-06-28 21:01:34 +0530
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-30 22:10:27 +0530
commit6fae36abc404ffb7e6ae29c9edceda5231400f0a (patch)
treebce50b744fd917e393848813d8206668f48bd190 /resources/qml/UserProfile.qml
parentError Handling and some fixes (diff)
downloadnheko-6fae36abc404ffb7e6ae29c9edceda5231400f0a.tar.xz
[WIP] Add Caching for users
Diffstat (limited to 'resources/qml/UserProfile.qml')
-rw-r--r--resources/qml/UserProfile.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index 6ef75031..a0b0f993 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -9,6 +9,7 @@ import "./device-verification" ApplicationWindow{ property var user_data + property var avatarUrl property var colors: currentActivePalette id:userProfileDialog @@ -52,11 +53,11 @@ ApplicationWindow{ Avatar{ id: userProfileAvatar - url:chat.model.avatarUrl(user_data.userId).replace("mxc://", "image://MxcImage/") + url: avatarUrl.replace("mxc://", "image://MxcImage/") height: 130 width: 130 - displayName: modelData.userName - userid: modelData.userId + displayName: user_data.userName + userid: user_data.userId Layout.alignment: Qt.AlignHCenter Layout.margins : { top: 10 @@ -68,7 +69,7 @@ ApplicationWindow{ text: user_data.userName fontSizeMode: Text.HorizontalFit font.pixelSize: 20 - color:TimelineManager.userColor(modelData.userId, colors.window) + color:TimelineManager.userColor(user_data.userId, colors.window) font.bold: true Layout.alignment: Qt.AlignHCenter } @@ -207,7 +208,7 @@ ApplicationWindow{ Layout.margins : { right : 10 - bottom : 10 + bottom: 5 } palette {