quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly

This commit is contained in:
Goffi 2016-09-09 23:54:33 +02:00
commit 1b01409238

View file

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