diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-02 12:00:54 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-02 12:03:04 +0100 |
commit | 03e8aabf1754f5061f207d2c9c082ba6199db0e5 (patch) | |
tree | 66124163b4da541dfb17c30299b9aeb82f9fad79 /framework/src/sinkfabric.cpp | |
parent | 795d551639340d81641aa8c6eabff1776e0b2ee1 (diff) | |
download | kube-03e8aabf1754f5061f207d2c9c082ba6199db0e5.tar.gz kube-03e8aabf1754f5061f207d2c9c082ba6199db0e5.zip |
Visualize that a folder has new mails.
We listen for new mail notifications, and highlight the folder
accordingly.
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r-- | framework/src/sinkfabric.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 8492f272..916cc8fa 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -203,6 +203,11 @@ public: | |||
203 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { | 203 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { |
204 | message["type"] = "info"; | 204 | message["type"] = "info"; |
205 | message["message"] = QObject::tr("A message has been sent."); | 205 | message["message"] = QObject::tr("A message has been sent."); |
206 | } else if (notification.code == Sink::ApplicationDomain::NewContentAvailable) { | ||
207 | message["type"] = "info"; | ||
208 | if (!notification.entities.isEmpty()) { | ||
209 | message["folderId"] = notification.entities.first(); | ||
210 | } | ||
206 | } else { | 211 | } else { |
207 | return; | 212 | return; |
208 | } | 213 | } |