summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-29 17:41:15 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-29 17:41:15 +0100
commit6d2699c73a27078343037235b9bdcd7112320ab2 (patch)
tree83bea531cf21f6f2142092d4ed14ada979ad308d /framework
parentffefff6c6ed10c9992c9de7fa4f99a30f1f99901 (diff)
downloadkube-6d2699c73a27078343037235b9bdcd7112320ab2.tar.gz
kube-6d2699c73a27078343037235b9bdcd7112320ab2.zip
Always mark the full conversation as read.
Marking individual messages as read didn't really feel all that useful.
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/ConversationView.qml17
-rw-r--r--framework/qml/MailListView.qml5
2 files changed, 4 insertions, 18 deletions
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 {
116 } 116 }
117 } 117 }
118 118
119 onCurrentItemChanged: {
120 if (currentItem) {
121 markAsReadTimer.restart()
122 }
123 }
124
125 Timer {
126 id: markAsReadTimer
127 interval: 2000
128 running: false
129 repeat: false
130 onTriggered: {
131 if (listView.currentItem && !!listView.currentItem.currentData.mail) {
132 Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": listView.currentItem.currentData.mail})
133 }
134 }
135 }
136 } 119 }
137 } 120 }
138} 121}
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 {
33 property bool isUnread : false 33 property bool isUnread : false
34 property variant currentMail: null 34 property variant currentMail: null
35 35
36 onCurrentMailChanged: Kube.Fabric.postMessage(Kube.Messages.mailSelection, {"mail":currentMail}) 36 onCurrentMailChanged: {
37 Kube.Fabric.postMessage(Kube.Messages.markAsRead, {"mail": currentMail})
38 Kube.Fabric.postMessage(Kube.Messages.mailSelection, {"mail": currentMail})
39 }
37 40
38 Kube.Listener { 41 Kube.Listener {
39 filter: Kube.Messages.folderSelection 42 filter: Kube.Messages.folderSelection