quick frontend (contat list/cache): workaround for avatar issue in MUC. Need to be reworked properly in the future (TODO)
This commit is contained in:
parent
b97038f281
commit
f992739212
1 changed files with 34 additions and 12 deletions
|
|
@ -764,7 +764,10 @@ class QuickApp(object):
|
|||
self.contact_lists[profile].setCache(entity, 'nick', value)
|
||||
self.callListeners('nick', entity, value, profile=profile)
|
||||
elif key == "avatar":
|
||||
if value and entity in self.contact_lists[profile]:
|
||||
if value: # and entity in self.contact_lists[profile]:
|
||||
# FIXME: contact_list check is removed to work around 'avatar' issues
|
||||
# (avatar can't be requested if we don't save them here)
|
||||
# avatar need to be refactored properly in backend and here
|
||||
def gotFilename(filename):
|
||||
self.contact_lists[profile].setCache(entity, 'avatar', filename)
|
||||
self.callListeners('avatar', entity, filename, profile=profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue