diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-08-30 20:08:47 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-09-11 19:35:31 -0400 |
commit | 350fc593ed0a6b36f63a2fabc3918d346597c7c5 (patch) | |
tree | f1a8861f2346f4a5df2b6c558c79fe2964fb737f /resources/qml/TopBar.qml | |
parent | Remove unused struct (diff) | |
download | nheko-350fc593ed0a6b36f63a2fabc3918d346597c7c5.tar.xz |
Use better id loading methodology
Diffstat (limited to 'resources/qml/TopBar.qml')
-rw-r--r-- | resources/qml/TopBar.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml index 0b50f7c6..78f81b7f 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml @@ -65,7 +65,8 @@ Rectangle { width: Nheko.avatarSize height: Nheko.avatarSize url: avatarUrl.replace("mxc://", "image://MxcImage/") - userid: room.roomMemberCount < 3 ? room.directChatAvatarMxid : room.roomId + roomid: room.roomId + userid: room.isDirect ? room.directChatAvatarMxid : undefined displayName: roomName onClicked: { if (room) |