From 1b01409238405a0745c598fe10e1ea76b3988ffb Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 9 Sep 2016 23:54:33 +0200 Subject: [PATCH] quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly --- frontends/src/quick_frontend/quick_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index 92733984..383d8d6b 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -96,9 +96,9 @@ class ProfileManager(object): # 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)