Skip to content
Snippets Groups Projects
Commit e4fca50e authored by jimpp's avatar jimpp
Browse files

If we got sha from disk and don't ask for new avatar, store sha in mem

parent 3f16220a
No related branches found
No related tags found
No related merge requests found
......@@ -1683,7 +1683,11 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
cached_sha = ''
if cached_sha != avatar_sha:
# avatar has been updated
# sha in mem will be updated later
self.request_vcard(who, True)
else:
# save sha in mem NOW
self.vcard_shas[who] = avatar_sha
self.dispatch('GC_NOTIFY', (jid_stripped, show, status, resource,
prs.getRole(), prs.getAffiliation(), prs.getJid(),
prs.getReason(), prs.getActor(), prs.getStatusCode(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment