summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-07-30 07:24:48 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-07-30 07:24:48 -0400
commit330b9d62a580fbd4c79925f511ab4c2e2200ad60 (patch)
tree5bb5a5e2f44d9044a41dddb2ca6d651356b1eab3
parentDon't switch room that read receipt-related stuff is opened in (diff)
downloadnheko-330b9d62a580fbd4c79925f511ab4c2e2200ad60.tar.xz
Move read receipts connection to allow for future pop-out room views
-rw-r--r--resources/qml/Root.qml12
-rw-r--r--resources/qml/TimelineView.qml12
2 files changed, 12 insertions, 12 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml

index a7684af5..7d91beae 100644 --- a/resources/qml/Root.qml +++ b/resources/qml/Root.qml
@@ -173,18 +173,6 @@ Page { } 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) { var dialog = mobileCallInviteDialog.createObject(msgView); diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index c5cc69a6..d19f2cc9 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 + } + }