Fix opening user mentions

This commit is contained in:
Tobias Fella
2023-07-17 12:46:12 +02:00
parent 9b31fdea10
commit 646c8ba8fe
2 changed files with 11 additions and 7 deletions

View File

@@ -420,13 +420,6 @@ QQC2.ScrollView {
popup.open()
}
function showUserDetail(user) {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: root.currentRoom,
user: root.currentRoom.getUser(user.id),
}).open();
}
function goToLastMessage() {
root.currentRoom.markAllMessagesAsRead()
// scroll to the very end, i.e to messageListView.YEnd
@@ -496,4 +489,11 @@ QQC2.ScrollView {
function positionViewAtBeginning() {
messageListView.positionViewAtBeginning()
}
function showUserDetail(user) {
userDetailDialog.createObject(QQC2.ApplicationWindow.overlay, {
room: root.currentRoom,
user: root.currentRoom.getUser(user.id),
}).open();
}
}

View File

@@ -177,4 +177,8 @@ Kirigami.Page {
root.header.contentItem.type = Kirigami.MessageType.Warning;
root.header.visible = true;
}
function showUserDetail(user) {
timelineViewLoader.item.showUserDetail(user)
}
}