Mercurial > pidgin.yaz
changeset 15194:8d2e6e9118e2
[gaim-migrate @ 17982]
For oscar accounts, make sure our server-stored icon is updated
correctly in the event that the local user set a new icon while
this account was offline.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 13 Dec 2006 08:45:57 +0000 |
parents | d380e165cd27 |
children | 4934e7a03a98 |
files | libgaim/protocols/oscar/oscar.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgaim/protocols/oscar/oscar.c Wed Dec 13 08:44:10 2006 +0000 +++ b/libgaim/protocols/oscar/oscar.c Wed Dec 13 08:45:57 2006 +0000 @@ -4697,6 +4697,7 @@ GaimBuddy *b; struct aim_ssi_item *curitem; guint32 tmp; + const char *icon_path, *cached_icon_path; va_list ap; guint16 fmtver, numitems; guint32 timestamp; @@ -4924,6 +4925,15 @@ "ssi: activating server-stored buddy list\n"); aim_ssi_enable(od); + /* + * Make sure our server-stored icon is updated correctly in + * the event that the local user set a new icon while this + * account was offline. + */ + icon_path = gaim_account_get_buddy_icon(account); + cached_icon_path = gaim_buddy_icons_get_full_path(icon_path); + oscar_set_icon(gc, cached_icon_path); + return 1; }