quick_frontend: ask for the roster in connectedHandler instead of in ProfileManager, because we need it also when reconnecting after a disconnection whithout restarting the frontend

This commit is contained in:
souliane 2015-04-20 16:46:17 +02:00
commit 4c25ec71ba

View file

@ -98,8 +98,6 @@ class ProfileManager(object):
if not self.bridge.isConnected(self.profile):
self.host.setPresenceStatus(C.PRESENCE_UNAVAILABLE, '', profile=self.profile)
else:
contact_list.fill()
self.host.setPresenceStatus(profile=self.profile)
#The waiting subscription requests
@ -443,6 +441,7 @@ class QuickApp(object):
"""called when the connection is made"""
log.debug(_("Connected"))
self.setPresenceStatus(profile=profile)
self.contact_lists[profile].fill()
def disconnectedHandler(self, profile):
"""called when the connection is closed"""