quick app(app): call entityDataUpdateHandler on profile plug instead of setCache directly
This commit is contained in:
parent
d80d9ae0d4
commit
1b01409238
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue