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:
Goffi 2016-09-09 23:54:33 +02:00
commit f992739212

View file

@ -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)