Move read receipts connection to allow for future pop-out room views

This commit is contained in:
Loren Burkholder 2021-07-30 07:24:48 -04:00
parent 135622e14e
commit 330b9d62a5
2 changed files with 12 additions and 12 deletions

View File

@ -172,18 +172,6 @@ Page {
target: TimelineManager
}
Connections {
function onOpenReadReceiptsDialog(rr) {
var dialog = readReceiptsDialog.createObject(timelineRoot, {
"readReceipts": rr,
"room": Rooms.currentRoom
});
dialog.show();
}
target: Rooms.currentRoom
}
Connections {
function onNewInviteState() {
if (CallManager.haveCallInvite && Settings.mobileMode) {

View File

@ -249,4 +249,16 @@ Item {
roomid: room ? room.roomId : ""
}
Connections {
function onOpenReadReceiptsDialog(rr) {
var dialog = readReceiptsDialog.createObject(timelineRoot, {
"readReceipts": rr,
"room": room
});
dialog.show();
}
target: room
}
}