diff src/blist.c @ 6392:e9974608b319

[gaim-migrate @ 6897] deryni absolutely rocks. Amazing guy. We now have these beautiful protocol icons on tabs that update to reflect status. Away, grey on idle, even the sign on/off doors. Wow. This will no doubt be known as the highlight of 0.67. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 06 Aug 2003 11:38:57 +0000
parents 01289157fc37
children e7b87c8e8c0a
line wrap: on
line diff
--- a/src/blist.c	Wed Aug 06 09:43:11 2003 +0000
+++ b/src/blist.c	Wed Aug 06 11:38:57 2003 +0000
@@ -167,6 +167,7 @@
 
 static gboolean presence_update_timeout_cb(struct buddy *buddy) {
 	struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops;
+	GaimConversation *conv = gaim_find_conversation(buddy->name);
 
 	if(buddy->present == GAIM_BUDDY_SIGNING_ON) {
 		buddy->present = GAIM_BUDDY_ONLINE;
@@ -179,6 +180,13 @@
 	if (ops)
 		ops->update(gaimbuddylist, (GaimBlistNode*)buddy);
 
+	if (conv) {
+		if (buddy->present == GAIM_BUDDY_ONLINE)
+			gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_ONLINE);
+		else if (buddy->present == GAIM_BUDDY_OFFLINE)
+			gaim_conversation_update(conv, GAIM_CONV_ACCOUNT_OFFLINE);
+	}
+
 	return FALSE;
 }