[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Btelepathy-chat-handler=5D_lib=3A_Don=27t_notify_of_?=
From: Lasse Liehu <lliehu () kolumbus ! fi>
Date: 2011-04-13 21:20:20
Message-ID: 20110413212020.3BB90A609B () git ! kde ! org
[Download RAW message or body]
Git commit 32f91cfb65ef993c02e4ba28272a0328064f133c by Lasse Liehu.
Committed on 14/04/2011 at 00:09.
Pushed by lliehu into branch 'master'.
Don't notify of messages sent by self from another computer
Reviewed by mck182
M +4 -0 lib/chat-widget.cpp
http://commits.kde.org/telepathy-chat-handler/32f91cfb65ef993c02e4ba28272a0328064f133c
diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 3d460ae..b483436 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -462,6 +462,10 @@ void ChatWidget::notifyAboutIncomingMessage(const Tp::ReceivedMessage & message)
kDebug() << "Widget is on top, not doing anything";
return;
}
+ // don't notify of messages sent by self from another computer
+ if (message.sender() == d->channel->connection()->selfContact()) {
+ return;
+ }
// kde_telepathy_contact_highlight (contains your name)
// kde_telepathy_info_event
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic