Beispiel #1
0
 def parse_vcard_update(self, stanza):    
     payload = stanza.get_payload(VCardUpdatePayload)
     if payload is not None:
         plain_jid = get_email(stanza.from_jid)
         if payload.photo is not None:
             if not avatarManager.check_avatar(plain_jid, payload.photo):            
                 self.get_vcard(stanza.from_jid)
Beispiel #2
0
 def parse_vcard_update(self, stanza):
     payload = stanza.get_payload(VCardUpdatePayload)
     if payload is not None:
         plain_jid = get_email(stanza.from_jid)
         if payload.photo is not None:
             if not avatarManager.check_avatar(plain_jid, payload.photo):
                 self.get_vcard(stanza.from_jid)
Beispiel #3
0
 def _on_vcard_avatar(self, pres):
     data = pres['vcard_temp_update']['photo']
     if not data:
         return
     jid = pres['from'].bare
     if not avatarManager.check_avatar(jid, data):
         self.request_vcard(jid)
Beispiel #4
0
 def _on_vcard_avatar(self, pres):
     data = pres["vcard_temp_update"]["photo"]
     if not data:
         return
     jid = pres["from"].bare
     if not avatarManager.check_avatar(jid, data):
         self.request_vcard(jid)