summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
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/qml/ConversationView.qml
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/qml/ConversationView.qml')
-rw-r--r--framework/qml/ConversationView.qml17
1 files changed, 0 insertions, 17 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}