plugin XEP-0054: fixed vcard-update callback which was updating avatar when hash was empty, resulting in a really slow start
This commit is contained in:
parent
2fdfc5220f
commit
9c4ec1595c
2 changed files with 35 additions and 26 deletions
|
|
@ -453,9 +453,9 @@ class Memory(object):
|
|||
raise ValueError("Empty profile name")
|
||||
if name[0] == '@':
|
||||
raise ValueError("A profile name can't start with a '@'")
|
||||
|
||||
|
||||
d = self.params.asyncCreateProfile(name)
|
||||
|
||||
|
||||
def initPersonalKey(dummy):
|
||||
# be sure to call this after checking that the profile doesn't exist yet
|
||||
personal_key = BlockCipher.getRandomKey(base64=True) # generated once for all and saved in a PersistentDict
|
||||
|
|
@ -691,7 +691,7 @@ class Memory(object):
|
|||
C.ENTITY_ALL for all entities (all resources + bare jids)
|
||||
@param key: key to set (eg: "type")
|
||||
@param value: value for this key (eg: "chatroom")
|
||||
@param silent(bool): if True, doesn't send signal to frontend, even there is a signal flag (see setSignalOnUpdate)
|
||||
@param silent(bool): if True, doesn't send signal to frontend, even if there is a signal flag (see setSignalOnUpdate)
|
||||
@param profile_key: %(doc_profile_key)s
|
||||
"""
|
||||
profile_cache = self._getProfileCache(profile_key)
|
||||
|
|
|
|||
Loading…
Reference in a new issue