From e4fca50eb7860721709cd3f5b91a6bebb01f8507 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 4 Feb 2007 00:45:14 +0000 Subject: [PATCH] If we got sha from disk and don't ask for new avatar, store sha in mem --- src/common/connection_handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 494b91bf4..1c6a1f2e7 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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(),