]> git.0d.be Git - empathy.git/commitdiff
Don't highlight messages the user sent themself
authorWill Thompson <will@willthompson.co.uk>
Wed, 18 Jan 2012 16:37:17 +0000 (16:37 +0000)
committerWill Thompson <will@willthompson.co.uk>
Wed, 18 Jan 2012 17:55:08 +0000 (17:55 +0000)
If a message is outgoing, then why on earth would we check whether it
mentions our own nick and highlight it?

libempathy-gtk/empathy-chat.c

index ea46e6b768e2c215088dc3087269a9d623bfa533..ae6c0d934bda117c15a0a09333d4345c32aa96e8 100644 (file)
@@ -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;