aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2012-01-19 00:37:17 +0800
committerWill Thompson <will@willthompson.co.uk>2012-01-19 01:55:08 +0800
commit7e3040b5be5fd1e4793ba14c89a380b8e526b499 (patch)
tree34e79d33fdb978cd1e70783457ab736900121cae /libempathy-gtk
parentb12ce233dce1dcd581b34ea9944e36e59f511497 (diff)
downloadgsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar.gz
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar.bz2
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar.lz
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar.xz
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.tar.zst
gsoc2013-empathy-7e3040b5be5fd1e4793ba14c89a380b8e526b499.zip
Don't highlight messages the user sent themself
If a message is outgoing, then why on earth would we check whether it mentions our own nick and highlight it?
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index ea46e6b76..ae6c0d934 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1420,6 +1420,10 @@ chat_should_highlight (EmpathyChat *chat,
g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), FALSE);
+ if (!empathy_message_is_incoming (message)) {
+ return FALSE;
+ }
+
msg = empathy_message_get_body (message);
if (!msg) {
return FALSE;