Mercurial > pidgin
comparison libpurple/protocols/oscar/oscar.c @ 20661:408c4bb03915
Invalidate old oscar icons when someone clears their icon.
Fixes #765.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 26 Sep 2007 07:57:14 +0000 |
parents | 0bd4e35741f4 |
children | 02df6998b466 d579d77d4604 |
comparison
equal
deleted
inserted
replaced
20659:94a64640af5d | 20661:408c4bb03915 |
---|---|
1871 b = purple_find_buddy(account, info->sn); | 1871 b = purple_find_buddy(account, info->sn); |
1872 if (b != NULL) | 1872 if (b != NULL) |
1873 saved_b16 = purple_buddy_icons_get_checksum_for_user(b); | 1873 saved_b16 = purple_buddy_icons_get_checksum_for_user(b); |
1874 | 1874 |
1875 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) { | 1875 if (!b16 || !saved_b16 || strcmp(b16, saved_b16)) { |
1876 /* Invalidate the old icon for this user */ | |
1877 purple_buddy_icons_set_for_user(account, info->sn, NULL, 0, NULL); | |
1878 | |
1879 /* Fetch the new icon (if we're not already doing so) */ | |
1876 if (g_slist_find_custom(od->requesticon, info->sn, | 1880 if (g_slist_find_custom(od->requesticon, info->sn, |
1877 (GCompareFunc)aim_sncmp) == NULL) | 1881 (GCompareFunc)aim_sncmp) == NULL) |
1878 { | 1882 { |
1879 od->requesticon = g_slist_prepend(od->requesticon, | 1883 od->requesticon = g_slist_prepend(od->requesticon, |
1880 g_strdup(purple_normalize(account, info->sn))); | 1884 g_strdup(purple_normalize(account, info->sn))); |