getUser UserDetailDialog

Use `NeoChatRoom::getUser` to provide the user properties in `UserDetailDialog`
This commit is contained in:
James Graham
2023-05-29 13:43:24 +00:00
parent 3b5bb06b4a
commit 4e40f5c7d9
5 changed files with 27 additions and 33 deletions

View File

@@ -390,8 +390,7 @@ ColumnLayout {
onClicked: {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: currentRoom,
user: root.author.object,
displayName: root.author.displayName
user: root.author
}).open();
}
cursorShape: Qt.PointingHandCursor
@@ -474,9 +473,7 @@ ColumnLayout {
onClicked: {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: currentRoom,
user: root.author.object,
displayName: root.author.displayName,
avatarSource: root.author.avatarSource
user: root.author
}).open();
}
}