Stop requesting avatar without the intervention of the client.
This commit is contained in:
parent
41419a2161
commit
fb75f7cda9
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
||||
# =================================================================
|
||||
|
||||
|
|
Loading…
Reference in a new issue