summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-22 15:12:00 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-22 15:12:00 +0100
commitfb75f7cda9e8703bd5766cd291a793f23ead28a5 (patch)
treef7998a30217bfe0e32910b7d35d589bc8f736b94
parent41419a21613bd17f58965840340251872603a2e4 (diff)
downloadslixmpp-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.py5
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)
# =================================================================