changeset 7073:82e980962926

[gaim-migrate @ 7638] chat fixes (let you leave chats you join other than the first one) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 30 Sep 2003 16:27:04 +0000
parents 1350352f5818
children c6807437dcd7
files src/protocols/jabber/chat.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/chat.c	Tue Sep 30 14:37:05 2003 +0000
+++ b/src/protocols/jabber/chat.c	Tue Sep 30 16:27:04 2003 +0000
@@ -24,6 +24,7 @@
 
 #include "chat.h"
 #include "message.h"
+#include "presence.h"
 
 GList *jabber_chat_info(GaimConnection *gc)
 {
@@ -91,6 +92,7 @@
 {
 	JabberChat *chat;
 	struct _find_by_id_data *fbid = g_new0(struct _find_by_id_data, 1);
+	fbid->id = id;
 	g_hash_table_foreach(js->chats, find_by_id_foreach_cb, fbid);
 	chat = fbid->chat;
 	g_free(fbid);
@@ -183,7 +185,7 @@
 
 	g_hash_table_insert(js->chats, room_jid, chat);
 
-	presence = xmlnode_new("presence");
+	presence = jabber_presence_create(gc->away_state, gc->away);
 	full_jid = g_strdup_printf("%s/%s", room_jid, handle);
 	xmlnode_set_attrib(presence, "to", full_jid);
 	g_free(full_jid);