Stop requesting avatar without the intervention of the client.
This commit is contained in:
parent
41419a2161
commit
fb75f7cda9
@ -167,9 +167,6 @@ class XEP_0153(BasePlugin):
|
|||||||
data = pres['vcard_temp_update']['photo']
|
data = pres['vcard_temp_update']['photo']
|
||||||
if data is None:
|
if data is None:
|
||||||
return
|
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…
x
Reference in New Issue
Block a user