libpurple/group.c

changeset 42722
4e20540308d7
parent 42656
df9aafbae930
child 42725
ceb13f1de2d2
--- a/libpurple/group.c	Sat Apr 13 23:01:11 2024 -0500
+++ b/libpurple/group.c	Sat Apr 13 23:08:29 2024 -0500
@@ -63,10 +63,7 @@
 	gnode = (PurpleBlistNode *)group;
 
 	for (cnode = gnode->child;  cnode; cnode = cnode->next) {
-		if (PURPLE_IS_CHAT(cnode)) {
-			if (!g_slist_find(l, purple_chat_get_account(PURPLE_CHAT(cnode))))
-				l = g_slist_append(l, purple_chat_get_account(PURPLE_CHAT(cnode)));
-		} else if (PURPLE_IS_META_CONTACT(cnode)) {
+		if (PURPLE_IS_META_CONTACT(cnode)) {
 			for (bnode = cnode->child; bnode; bnode = bnode->next) {
 				if (PURPLE_IS_BUDDY(bnode)) {
 					if (!g_slist_find(l, purple_buddy_get_account(PURPLE_BUDDY(bnode))))
@@ -85,11 +82,6 @@
 		if (PURPLE_IS_META_CONTACT(cnode)) {
 			if(purple_meta_contact_on_account((PurpleMetaContact *) cnode, account))
 				return TRUE;
-		} else if (PURPLE_IS_CHAT(cnode)) {
-			PurpleChat *chat = (PurpleChat *)cnode;
-			if ((!account && purple_account_is_connected(purple_chat_get_account(chat)))
-					|| purple_chat_get_account(chat) == account)
-				return TRUE;
 		}
 	}
 	return FALSE;
@@ -145,9 +137,6 @@
 					moved_buddies = g_list_append(moved_buddies, bnode);
 				}
 				prev = child;
-			} else if (PURPLE_IS_CHAT(child)) {
-				purple_blist_add_chat((PurpleChat *)child, dest, prev);
-				prev = child;
 			} else {
 				purple_debug_error("blistnodetypes", "Unknown child type in group %s", priv->name);
 			}

mercurial