From 7e3040b5be5fd1e4793ba14c89a380b8e526b499 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 18 Jan 2012 16:37:17 +0000 Subject: 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? --- libempathy-gtk/empathy-chat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy-gtk') 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; -- cgit v1.2.3