summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-09-04 20:53:33 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commit356723fe0644f6e05f934262ea80dca2d33330c3 (patch)
treef19782f75471af15eab45321f492476fb0f9566d /resources
parentFinish getting all avatars jdenticonified (diff)
downloadnheko-356723fe0644f6e05f934262ea80dca2d33330c3.tar.xz
Use more descriptive property name
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/RoomList.qml4
-rw-r--r--resources/qml/TopBar.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 3b7fa84e..addbf571 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -144,7 +144,7 @@ Page {
             required property bool hasLoudNotification
             required property bool hasUnreadMessages
             required property bool isDirect
-            required property string directChatAvatarMxid
+            required property string directChatOtherUserId
 
             color: background
             height: avatarSize + 2 * Nheko.paddingMedium
@@ -239,7 +239,7 @@ Page {
                     width: avatarSize
                     url: avatarUrl.replace("mxc://", "image://MxcImage/")
                     displayName: roomName
-                    userid: isDirect ? directChatAvatarMxid : undefined
+                    userid: isDirect ? directChatOtherUserId : ""
                     roomid: roomId
 
                     Rectangle {
diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml
index 78f81b7f..a8a53a24 100644
--- a/resources/qml/TopBar.qml
+++ b/resources/qml/TopBar.qml
@@ -66,7 +66,7 @@ Rectangle {
             height: Nheko.avatarSize
             url: avatarUrl.replace("mxc://", "image://MxcImage/")
             roomid: room.roomId
-            userid: room.isDirect ? room.directChatAvatarMxid : undefined
+            userid: room.isDirect ? room.directChatOtherUserId : ""
             displayName: roomName
             onClicked: {
                 if (room)