Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 1429:798e5e38516b
quick_frontend (quick_app): properly fixed roster loss:
commit 6adf1b0be609 which was causing issues in Libervia or when a profile was already connected
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 22 May 2015 22:31:37 +0200 |
parents | 0e518415d03a |
children | ba09cd879343 |
comparison
equal
deleted
inserted
replaced
1428:0e518415d03a | 1429:798e5e38516b |
---|---|
133 for entity in data['jids']: | 133 for entity in data['jids']: |
134 result.setdefault(entity, set()).add(group) | 134 result.setdefault(entity, set()).add(group) |
135 return result | 135 return result |
136 | 136 |
137 def fill(self): | 137 def fill(self): |
138 """Get all contacts from backend, and fill the widget""" | 138 """Get all contacts from backend, and fill the widget |
139 | |
140 Contacts will be cleared before refilling them | |
141 """ | |
142 self.clearContacts() | |
139 def gotContacts(contacts): | 143 def gotContacts(contacts): |
140 for contact in contacts: | 144 for contact in contacts: |
141 self.host.newContactHandler(*contact, profile=self.profile) | 145 self.host.newContactHandler(*contact, profile=self.profile) |
142 | 146 |
143 self.host.bridge.getContacts(self.profile, callback=gotContacts) | 147 self.host.bridge.getContacts(self.profile, callback=gotContacts) |