quick_frontend (quick_app): properly fixed roster loss:
commit 6adf1b0be609 which was causing issues in Libervia or when a profile was already connected
This commit is contained in:
parent
f978524b22
commit
3c6a708966
2 changed files with 7 additions and 1 deletions
|
|
@ -98,6 +98,8 @@ 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
|
||||
|
|
|
|||
|
|
@ -135,7 +135,11 @@ class QuickContactList(QuickWidget):
|
|||
return result
|
||||
|
||||
def fill(self):
|
||||
"""Get all contacts from backend, and fill the widget"""
|
||||
"""Get all contacts from backend, and fill the widget
|
||||
|
||||
Contacts will be cleared before refilling them
|
||||
"""
|
||||
self.clearContacts()
|
||||
def gotContacts(contacts):
|
||||
for contact in contacts:
|
||||
self.host.newContactHandler(*contact, profile=self.profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue