From 330b9d62a580fbd4c79925f511ab4c2e2200ad60 Mon Sep 17 00:00:00 2001 From: Loren Burkholder <computersemiexpert@outlook.com> Date: Fri, 30 Jul 2021 07:24:48 -0400 Subject: [PATCH] Move read receipts connection to allow for future pop-out room views --- resources/qml/Root.qml | 12 ------------ resources/qml/TimelineView.qml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml index a7684af59..7d91beaef 100644 --- a/resources/qml/Root.qml +++ b/resources/qml/Root.qml @@ -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) { diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index c5cc69a66..d19f2cc90 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -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 + } + } -- GitLab