getUser UserDetailDialog
Use `NeoChatRoom::getUser` to provide the user properties in `UserDetailDialog`
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@ QQC2.ScrollView {
|
||||
function showUserDetail(user) {
|
||||
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
|
||||
room: root.currentRoom,
|
||||
user: user,
|
||||
user: root.currentRoom.getUser(user.id),
|
||||
}).open();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user