[empathy: 5/10] Don't highlight messages the user sent themself



commit 7e3040b5be5fd1e4793ba14c89a380b8e526b499
Author: Will Thompson <will willthompson co uk>
Date:   Wed Jan 18 16:37:17 2012 +0000

    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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index ea46e6b..ae6c0d9 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]