mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Don't switch room that read receipt-related stuff is opened in
This commit is contained in:
parent
368e13fac3
commit
135622e14e
2 changed files with 6 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue