diff frontends/src/quick_frontend/quick_app.py @ 2061:748e539c5feb

quick frontend (contat list/cache): workaround for avatar issue in MUC. Need to be reworked properly in the future (TODO)
author Goffi <goffi@goffi.org>
date Fri, 09 Sep 2016 23:54:33 +0200
parents 9dd76a5b63ba
children 09c18fcd8225
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Fri Sep 09 23:54:33 2016 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Fri Sep 09 23:54:33 2016 +0200
@@ -764,7 +764,10 @@
                 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)