comparison src/protocols/yahoo/yahoo.c @ 9325:f40233043b5a

[gaim-migrate @ 10133] This fixes some oddities with fetching a users icon if he had previously unset it, and then set the same one. We were forgetting to unset some flags and also the checksum, so we noticed the checksum was the same and didn't ask for the icon, even though we didn't have an icon. Its still not always fetching it, which is odd. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 20 Jun 2004 07:38:40 +0000
parents 01c50436203e
children d42f3e4fd7ad
comparison
equal deleted inserted replaced
9324:af707cc1e229 9325:f40233043b5a
441 GaimBuddy *b; 441 GaimBuddy *b;
442 442
443 if (!name) 443 if (!name)
444 break; 444 break;
445 445
446 b = gaim_find_buddy(gc->account, name);
447
446 if (!cksum || (cksum == -1)) { 448 if (!cksum || (cksum == -1)) {
449 if (f)
450 yahoo_friend_set_buddy_icon_need_request(f, TRUE);
447 gaim_buddy_icons_set_for_user(gc->account, name, NULL, 0); 451 gaim_buddy_icons_set_for_user(gc->account, name, NULL, 0);
452 if (b)
453 gaim_blist_node_remove_setting((GaimBlistNode *)b, YAHOO_ICON_CHECKSUM_KEY);
448 break; 454 break;
449 } 455 }
450 456
451 if (!f) 457 if (!f)
452 break; 458 break;
453 b = gaim_find_buddy(gc->account, name); 459
454 yahoo_friend_set_buddy_icon_need_request(f, FALSE); 460 yahoo_friend_set_buddy_icon_need_request(f, FALSE);
455 if (cksum != gaim_blist_node_get_int((GaimBlistNode*)b, YAHOO_ICON_CHECKSUM_KEY)) 461 if (cksum != gaim_blist_node_get_int((GaimBlistNode*)b, YAHOO_ICON_CHECKSUM_KEY))
456 yahoo_send_picture_request(gc, name); 462 yahoo_send_picture_request(gc, name);
457 463
458 break; 464 break;