Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/disco.c @ 25817:9195955395b6
Only (re)publish XMPP avatars at login if the server's avatar differs
As part of this, no longer rely on the vcard for determining a need to
publish the XEP-0084 avatar; explicitly fetch and compare it.
Closes #7734.
References #7732. That patch needs updating to apply on top of this.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 21 Jan 2009 20:16:22 +0000 |
parents | 0700833f0c5d |
children | 0fa91206cf5a |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c Wed Jan 21 17:56:07 2009 +0000 +++ b/libpurple/protocols/jabber/disco.c Wed Jan 21 20:16:22 2009 +0000 @@ -23,16 +23,16 @@ #include "prefs.h" #include "debug.h" +#include "adhoccommands.h" #include "buddy.h" +#include "disco.h" #include "google.h" #include "iq.h" -#include "disco.h" #include "jabber.h" +#include "pep.h" #include "presence.h" #include "roster.h" -#include "pep.h" -#include "adhoccommands.h" - +#include "useravatar.h" struct _jabber_disco_info_cb_data { gpointer data; @@ -341,6 +341,8 @@ const char *ft_proxies; jabber_vcard_fetch_mine(js); + if (js->pep) + jabber_avatar_fetch_mine(js); if (!(js->server_caps & JABBER_CAP_GOOGLE_ROSTER)) { /* If the server supports JABBER_CAP_GOOGLE_ROSTER; we will have already requested it */