changeset 19559:11849a5c3951

Update the chat topic and userlist when reattaching the Pidgin UI.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 31 Aug 2007 19:08:35 +0000
parents f902cd0dc925
children 0a055f917c85
files pidgin/gtkconv.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Fri Aug 31 18:43:51 2007 +0000
+++ b/pidgin/gtkconv.c	Fri Aug 31 19:08:35 2007 +0000
@@ -5625,6 +5625,7 @@
 		account, name, displaying, conv, flags);
 	g_free(displaying);
 }
+
 static void
 pidgin_conv_chat_add_users(PurpleConversation *conv, GList *cbuddies, gboolean new_arrivals)
 {
@@ -7238,10 +7239,10 @@
 				"conversation-displayed", gtkconv);
 	}
 
-	/* XXX: If this is a chat:
-	 * 	- populate the userlist
-	 * 	- set the topic
-	 */
+	if (conv->type == PURPLE_CONV_TYPE_CHAT) {
+		pidgin_conv_update_fields(conv, PIDGIN_CONV_TOPIC);
+		pidgin_conv_chat_add_users(conv, PURPLE_CONV_CHAT(conv)->in_room, TRUE);
+	}
 
 	return TRUE;
 }