summaryrefslogtreecommitdiffstats
path: root/framework/qml/ConversationView.qml
diff options
context:
space:
mode:
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}