diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-08-13 20:05:26 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-09-11 19:35:31 -0400 |
commit | 1fdecdcc213fe91711649243a315ebd11809f0f9 (patch) | |
tree | 7b7427123ba2770939851ebde89ec21ef682e432 /resources | |
parent | Add licenses (diff) | |
download | nheko-1fdecdcc213fe91711649243a315ebd11809f0f9.tar.xz |
Get direct chat jdenticons to line up
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/RoomList.qml | 3 | ||||
-rw-r--r-- | resources/qml/TopBar.qml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index a0009174..fcb2644e 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -143,6 +143,8 @@ Page { required property int notificationCount required property bool hasLoudNotification required property bool hasUnreadMessages + required property int roomMemberCount + required property string directChatAvatarMxid color: background height: avatarSize + 2 * Nheko.paddingMedium @@ -237,6 +239,7 @@ Page { width: avatarSize url: avatarUrl.replace("mxc://", "image://MxcImage/") displayName: roomName + userid: roomMemberCount < 3 ? directChatAvatarMxid : roomId Rectangle { id: collapsedNotificationBubble diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml index 7f67c028..0b50f7c6 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml @@ -65,6 +65,7 @@ Rectangle { width: Nheko.avatarSize height: Nheko.avatarSize url: avatarUrl.replace("mxc://", "image://MxcImage/") + userid: room.roomMemberCount < 3 ? room.directChatAvatarMxid : room.roomId displayName: roomName onClicked: { if (room) |