diff src/conversation.c @ 8722:230fee6f1e3e

[gaim-migrate @ 9477] So, I decided we should cut down on gaim_notify_* where possible and find less obtrusive ways to report errors, so I made GAIM_MESSAGE_ERROR as a flag that can be sent to gaim_conversation_write to report conversation-specific errors ("This message was not sent because %s is offline" and the sorts). I'll leave hacking the prpls to use it (without changing strings before Thursday) as an excercise. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 20 Apr 2004 05:00:27 +0000
parents 4aee5a47937d
children 7e6ab16d3549
line wrap: on
line diff
--- a/src/conversation.c	Tue Apr 20 04:39:27 2004 +0000
+++ b/src/conversation.c	Tue Apr 20 05:00:27 2004 +0000
@@ -1492,7 +1492,7 @@
 	win = gaim_conversation_get_window(conv);
 
 	/* Tab highlighting */
-	if (!(flags & GAIM_MESSAGE_RECV) && !(flags & GAIM_MESSAGE_SYSTEM))
+	if (!(flags & GAIM_MESSAGE_RECV) && !(flags & GAIM_MESSAGE_SYSTEM) && !(flags & GAIM_MESSAGE_ERROR))
 		return;
 
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
@@ -1504,7 +1504,8 @@
 		if ((flags & GAIM_MESSAGE_NICK) == GAIM_MESSAGE_NICK ||
 				gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_NICK)
 			unseen = GAIM_UNSEEN_NICK;
-		else if ((flags & GAIM_MESSAGE_SYSTEM) == GAIM_MESSAGE_SYSTEM &&
+		else if ((((flags & GAIM_MESSAGE_SYSTEM) == GAIM_MESSAGE_SYSTEM) ||
+			  ((flags & GAIM_MESSAGE_ERROR) == GAIM_MESSAGE_ERROR)) &&
 				 gaim_conversation_get_unseen(conv) != GAIM_UNSEEN_TEXT)
 			unseen = GAIM_UNSEEN_EVENT;
 		else