Mercurial > pidgin
comparison libgaim/protocols/msn/slp.c @ 14486:d85f326af28d
[gaim-migrate @ 17205]
Rest of SF Patch #1554627 from Richard Nelson (wabz)
"a user without an msnobject was having icon_checksum
removed on each status change"
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 09 Sep 2006 20:47:12 +0000 |
parents | aa4e9beab4de |
children | dc9ed6c44c48 |
comparison
equal
deleted
inserted
replaced
14485:c02ef8dd4416 | 14486:d85f326af28d |
---|---|
952 if (obj == NULL) | 952 if (obj == NULL) |
953 { | 953 { |
954 /* It seems the user has not set a msnobject */ | 954 /* It seems the user has not set a msnobject */ |
955 GSList *sl, *list; | 955 GSList *sl, *list; |
956 | 956 |
957 /* TODO: I think we need better buddy icon core functions. */ | |
958 gaim_buddy_icons_set_for_user(account, user->passport, NULL, -1); | |
959 | |
960 list = gaim_find_buddies(account, user->passport); | 957 list = gaim_find_buddies(account, user->passport); |
961 | 958 |
962 for (sl = list; sl != NULL; sl = sl->next) | 959 for (sl = list; sl != NULL; sl = sl->next) |
963 { | 960 { |
964 GaimBuddy *buddy = (GaimBuddy *)sl->data; | 961 GaimBuddy *buddy = (GaimBuddy *)sl->data; |
965 gaim_blist_node_remove_setting((GaimBlistNode*)buddy, "icon_checksum"); | 962 if (buddy->icon) |
963 gaim_blist_node_remove_setting((GaimBlistNode*)buddy, "icon_checksum"); | |
966 } | 964 } |
967 g_slist_free(list); | 965 g_slist_free(list); |
966 | |
967 /* TODO: I think we need better buddy icon core functions. */ | |
968 gaim_buddy_icons_set_for_user(account, user->passport, NULL, 0); | |
968 | 969 |
969 return; | 970 return; |
970 } | 971 } |
971 | 972 |
972 if (!buddy_icon_cached(account->gc, obj)) | 973 if (!buddy_icon_cached(account->gc, obj)) |