From 6d2699c73a27078343037235b9bdcd7112320ab2 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 29 Jan 2018 17:41:15 +0100 Subject: Always mark the full conversation as read. Marking individual messages as read didn't really feel all that useful. --- framework/qml/ConversationView.qml | 17 ----------------- framework/qml/MailListView.qml | 5 ++++- 2 files changed, 4 insertions(+), 18 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index c8ea74ae..f3011f65 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml @@ -116,23 +116,6 @@ FocusScope { } } - onCurrentItemChanged: { - if (currentItem) { - markAsReadTimer.restart() - } - } - - Timer { - id: markAsReadTimer - interval: 2000 - running: false - repeat: false - onTriggered: { - if (listView.currentItem && !!listView.currentItem.currentData.mail) { - Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": listView.currentItem.currentData.mail}) - } - } - } } } } diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 96cf30bc..1cdc664f 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -33,7 +33,10 @@ FocusScope { property bool isUnread : false property variant currentMail: null - onCurrentMailChanged: Kube.Fabric.postMessage(Kube.Messages.mailSelection, {"mail":currentMail}) + onCurrentMailChanged: { + Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": currentMail}) + Kube.Fabric.postMessage(Kube.Messages.mailSelection, {"mail": currentMail}) + } Kube.Listener { filter: Kube.Messages.folderSelection -- cgit v1.2.3