Visit User

Move to using visit user in all cases.
This commit is contained in:
James Graham
2023-08-27 19:05:55 +00:00
parent f5ad2ad162
commit 50e8b9ebf6
7 changed files with 21 additions and 57 deletions

View File

@@ -375,10 +375,7 @@ ColumnLayout {
MouseArea {
anchors.fill: parent
onClicked: {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: currentRoom,
user: root.author
}).open();
RoomManager.visitUser(root.author.object, "mention")
}
cursorShape: Qt.PointingHandCursor
}
@@ -459,10 +456,7 @@ ColumnLayout {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: currentRoom,
user: root.author
}).open();
RoomManager.visitUser(root.author.object, "mention")
}
}
}

View File

@@ -222,12 +222,6 @@ QQC2.ScrollView {
FileDelegateContextMenu {}
}
Component {
id: userDetailDialog
UserDetailDialog {}
}
TypingPane {
id: typingPane
visible: root.currentRoom && root.currentRoom.usersTyping.length > 0
@@ -445,11 +439,4 @@ QQC2.ScrollView {
function positionViewAtBeginning() {
messageListView.positionViewAtBeginning()
}
function showUserDetail(user) {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: root.currentRoom,
user: root.currentRoom.getUser(user.id),
}).open();
}
}