diff src/blist.c @ 11494:3314953511de

[gaim-migrate @ 13738] Some whitespace changes, from my editor. Perhaps I should add it to the COPYRIGHT file? Also, sadrul writes: Hello. The icon in the conversation-tabs don't alway change when the status of a buddy changes. This patch fixes that. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sat, 10 Sep 2005 20:41:20 +0000
parents 201617d49573
children 8d0a2b6c192b
line wrap: on
line diff
--- a/src/blist.c	Sat Sep 10 19:19:20 2005 +0000
+++ b/src/blist.c	Sat Sep 10 20:41:20 2005 +0000
@@ -749,6 +749,7 @@
 	GaimBlistUiOps *ops = gaimbuddylist->ui_ops;
 	GaimPresence *presence;
 	GaimStatus *status;
+	GaimConversation *conv;
 
 	g_return_if_fail(buddy != NULL);
 
@@ -805,6 +806,9 @@
 	gaim_contact_invalidate_priority_buddy(gaim_buddy_get_contact(buddy));
 	if (ops && ops->update)
 		ops->update(gaimbuddylist, (GaimBlistNode *)buddy);
+
+	if ((conv = gaim_find_conversation_with_account(GAIM_CONV_IM, buddy->name, buddy->account)))
+		gaim_conversation_update(conv, GAIM_CONV_UPDATE_AWAY);
 }
 
 void gaim_blist_update_buddy_icon(GaimBuddy *buddy)