Skip to content
Snippets Groups Projects
Commit 135622e1 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Don't switch room that read receipt-related stuff is opened in

parent 368e13fa
No related branches found
No related tags found
No related merge requests found
Pipeline #1491 passed
......@@ -11,6 +11,7 @@ ApplicationWindow {
id: readReceiptsRoot
property ReadReceiptsProxy readReceipts
property Room room
x: MainWindow.x + (MainWindow.width / 2) - (width / 2)
y: MainWindow.y + (MainWindow.height / 2) - (height / 2)
......@@ -65,7 +66,7 @@ ApplicationWindow {
userid: model.mxid
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
displayName: model.displayName
onClicked: Rooms.currentRoom.openUserProfile(model.mxid)
onClicked: room.openUserProfile(model.mxid)
ToolTip.visible: avatarHover.hovered
ToolTip.text: model.mxid
......@@ -86,7 +87,7 @@ ApplicationWindow {
ToolTip.text: model.mxid
TapHandler {
onSingleTapped: Rooms.currentRoom.openUserProfile(userId)
onSingleTapped: room.openUserProfile(userId)
}
CursorShape {
......
......@@ -173,9 +173,10 @@ Page {
}
Connections {
function onOpenReadReceiptsDialog() {
function onOpenReadReceiptsDialog(rr) {
var dialog = readReceiptsDialog.createObject(timelineRoot, {
"readReceipts": rr
"readReceipts": rr,
"room": Rooms.currentRoom
});
dialog.show();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment