diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-22 15:12:00 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-22 15:12:00 +0100 |
commit | fb75f7cda9e8703bd5766cd291a793f23ead28a5 (patch) | |
tree | f7998a30217bfe0e32910b7d35d589bc8f736b94 | |
parent | 41419a21613bd17f58965840340251872603a2e4 (diff) | |
download | slixmpp-fb75f7cda9e8703bd5766cd291a793f23ead28a5.tar.gz slixmpp-fb75f7cda9e8703bd5766cd291a793f23ead28a5.tar.bz2 slixmpp-fb75f7cda9e8703bd5766cd291a793f23ead28a5.tar.xz slixmpp-fb75f7cda9e8703bd5766cd291a793f23ead28a5.zip |
Stop requesting avatar without the intervention of the client.
-rw-r--r-- | slixmpp/plugins/xep_0153/vcard_avatar.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0153/vcard_avatar.py b/slixmpp/plugins/xep_0153/vcard_avatar.py index 6430e8d6..cf10283a 100644 --- a/slixmpp/plugins/xep_0153/vcard_avatar.py +++ b/slixmpp/plugins/xep_0153/vcard_avatar.py @@ -167,10 +167,7 @@ class XEP_0153(BasePlugin): data = pres['vcard_temp_update']['photo'] if data is None: return - elif data == '' or data != self.api['get_hash'](pres['from']): - ifrom = pres['to'] if self.xmpp.is_component else None - self.api['reset_hash'](pres['from'], ifrom=ifrom) - self.xmpp.event('vcard_avatar_update', pres) + self.xmpp.event('vcard_avatar_update', pres) # ================================================================= |