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:
parent
41b549f7ae
commit
4c25ec71ba
1 changed files with 1 additions and 2 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue