[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:23:23 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=1a4e146

The following commit has been merged in the master branch:
commit 1a4e146a691392416297879f81ea251a7f15856a
Author: Lasath Fernando <kde at lasath.org>
Date:   Sat Mar 2 03:10:47 2013 -0500

    Update NotifyFilter to use new property names
---
 lib/notify-filter.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/notify-filter.cpp b/lib/notify-filter.cpp
index d180aba..abaf765 100644
--- a/lib/notify-filter.cpp
+++ b/lib/notify-filter.cpp
@@ -28,8 +28,7 @@ void NotifyFilter::filterMessage(KTp::Message &message, const KTp::MessageContex
         return;
     }
     // don't notify of messages sent by self from another location
-    if (message.property("sender").toString() ==
-            context.channel()->groupSelfContact()->alias()) {
+    if (message.senderId() == context.channel()->groupSelfContact()->id()) {
         return;
     }
 
@@ -55,9 +54,9 @@ void NotifyFilter::filterMessage(KTp::Message &message, const KTp::MessageContex
 
     notification->setComponentData(telepathyComponentData());
     notification->setTitle(i18n("%1 has sent you a message",
-                                message.property("sender").toString()));
+                                message.senderName()));
 
-    QString senderAvatar = message.property("sender-avatar").toString();
+    QString senderAvatar = message.property("senderAvatar").toString();
     if (!senderAvatar.isNull()) {
         QPixmap notificationPixmap;
         if (notificationPixmap.load(senderAvatar)) {

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list