changeset 13352:475214c22abf

[gaim-migrate @ 15724] SF Patch #1421209 from Sadrul "Currently, if some inactive conversation causes some system messages to be written on the gtkconv, that conversation is made active." Now, "we don't switch at all for non-send/non-recv messages". committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 01 Mar 2006 02:48:09 +0000
parents 967dd29cc4ae
children ba9946650bf7
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Wed Mar 01 02:30:58 2006 +0000
+++ b/src/gtkconv.c	Wed Mar 01 02:48:09 2006 +0000
@@ -4624,7 +4624,8 @@
 
 	/* Set the active conversation to the one that just messaged us. */
 	/* TODO: consider not doing this if the account is offline or something */
-	gaim_gtkconv_set_active_conversation(conv);
+	if (flags & (GAIM_MESSAGE_SEND | GAIM_MESSAGE_RECV))
+		gaim_gtkconv_set_active_conversation(conv);
 	type = gaim_conversation_get_type(conv);
 
 	gc = gaim_conversation_get_gc(conv);