summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-04-13 16:22:30 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-04-13 16:22:30 +0200
commitdcddea6fb89246d63be91a1f1151ce2dbd255a12 (patch)
tree5d3782b9d7763ab83b0d65d183e37dc29fcd40e6 /resources
parentFix notification not being cleared, when read event didn't cause a notification (diff)
downloadnheko-dcddea6fb89246d63be91a1f1151ce2dbd255a12.tar.xz
Fix reply not closing
fixes #124
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index 5b051235..86b511b2 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -285,7 +285,7 @@ Page { id: replyPopup - visible: timelineManager.replyingEvent && chat.model + visible: chat.model && chat.model.reply // Height of child, plus margins, plus border height: replyPreview.height + 10 color: colors.base @@ -300,7 +300,7 @@ Page { anchors.rightMargin: 20 anchors.bottom: parent.bottom - modelData: chat.model ? chat.model.getDump(timelineManager.replyingEvent) : {} + modelData: chat.model ? chat.model.getDump(chat.model.reply) : {} userColor: timelineManager.userColor(modelData.userId, colors.window) } @@ -318,7 +318,7 @@ Page { ToolTip.visible: closeReplyButton.hovered ToolTip.text: qsTr("Close") - onClicked: timelineManager.closeReply() + onClicked: chat.model.reply = undefined } } }