src/buddyicon.c

changeset 10246
aa5bff72f94c
parent 9801
c061a7280591
child 10483
e7b09a8b1f52
--- a/src/buddyicon.c	Tue Nov 23 05:53:59 2004 +0000
+++ b/src/buddyicon.c	Tue Nov 23 06:14:15 2004 +0000
@@ -105,8 +105,8 @@
 		account  = gaim_buddy_icon_get_account(icon);
 		username = gaim_buddy_icon_get_username(icon);
 
-		conv = gaim_find_conversation_with_account(username, account);
-		if (conv != NULL && gaim_conversation_get_type(conv) == GAIM_CONV_IM)
+		conv = gaim_find_conversation_with_account(GAIM_CONV_IM, username, account);
+		if (conv != NULL)
 			gaim_conv_im_set_icon(GAIM_CONV_IM(conv), NULL);
 
 		for (list = sl = gaim_find_buddies(account, username); sl != NULL;
@@ -190,9 +190,9 @@
 
 	g_slist_free(list);
 
-	conv = gaim_find_conversation_with_account(username, account);
+	conv = gaim_find_conversation_with_account(GAIM_CONV_IM, username, account);
 
-	if (conv != NULL && gaim_conversation_get_type(conv) == GAIM_CONV_IM)
+	if (conv != NULL)
 		gaim_conv_im_set_icon(GAIM_CONV_IM(conv), icon);
 }
 

mercurial