libpurple/protocols/qq/group_internal.c

branch
openq
changeset 24354
dcb8e72dad63
parent 24341
02abffea97fe
child 24360
f7e260e79429
equal deleted inserted replaced
24353:8fd4a9040c9e 24354:dcb8e72dad63
61 GHashTable *components; 61 GHashTable *components;
62 PurpleGroup *g; 62 PurpleGroup *g;
63 PurpleChat *chat; 63 PurpleChat *chat;
64 components = qq_group_to_hashtable(group); 64 components = qq_group_to_hashtable(group);
65 chat = purple_chat_new(purple_connection_get_account(gc), group->title_utf8, components); 65 chat = purple_chat_new(purple_connection_get_account(gc), group->title_utf8, components);
66 g = qq_create_group(PURPLE_GROUP_QQ_QUN); 66 g = qq_group_find_or_new(PURPLE_GROUP_QQ_QUN);
67 purple_blist_add_chat(chat, g, NULL); 67 purple_blist_add_chat(chat, g, NULL);
68 purple_debug_info("QQ", "Added room \"%s\" to blist locally\n", group->title_utf8); 68 purple_debug_info("QQ", "Added room \"%s\" to blist locally\n", group->title_utf8);
69 } 69 }
70 70
71 /* Create a dummy qq_group, which includes only internal_id, ext_id, 71 /* Create a dummy qq_group, which includes only internal_id, ext_id,

mercurial