changeset 2059:9dd76a5b63ba

quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly
author Goffi <goffi@goffi.org>
date Fri, 09 Sep 2016 23:54:33 +0200
parents b4db946ddc89
children d44360763262
files frontends/src/quick_frontend/quick_app.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Fri Sep 09 23:54:32 2016 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Fri Sep 09 23:54:33 2016 +0200
@@ -96,9 +96,9 @@
         # add the contact list and its listener
         contact_list = self.host.contact_lists.addProfile(self.profile)
 
-        for entity, data in cached_values.iteritems():
+        for entity_s, data in cached_values.iteritems():
             for key, value in data.iteritems():
-                contact_list.setCache(jid.JID(entity), key, value)
+                self.host.entityDataUpdatedHandler(entity_s, key, value, self.profile)
 
         if not self.bridge.isConnected(self.profile):
             self.host.setPresenceStatus(C.PRESENCE_UNAVAILABLE, '', profile=self.profile)