Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 347:ea3e1b82dd79
core: contact deletion from roster if we have no subscription to it (behaviour may change in futur)
quick frontend: groups is updated in contactList in case of roster push
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 May 2011 16:12:08 +0200 |
parents | f19771d2e63b |
children | 141eeb7cd9e6 |
comparison
equal
deleted
inserted
replaced
346:ca3a041fed30 | 347:ea3e1b82dd79 |
---|---|
201 | 201 |
202 def newContact(self, JabberId, attributes, groups, profile): | 202 def newContact(self, JabberId, attributes, groups, profile): |
203 if not self.check_profile(profile): | 203 if not self.check_profile(profile): |
204 return | 204 return |
205 entity=JID(JabberId) | 205 entity=JID(JabberId) |
206 self.rosterList[entity.short]=(dict(attributes), list(groups)) | 206 _groups = list(groups) |
207 self.rosterList[entity.short]=(dict(attributes), _groups) | |
208 if entity in self.CM: | |
209 self.CM.update(entity, 'groups', _groups) | |
210 self.contactList.replace(entity, self.CM.getAttr(entity, 'groups')) | |
207 | 211 |
208 def newMessage(self, from_jid, msg, type, to_jid, profile): | 212 def newMessage(self, from_jid, msg, type, to_jid, profile): |
209 if not self.check_profile(profile): | 213 if not self.check_profile(profile): |
210 return | 214 return |
211 sender=JID(from_jid) | 215 sender=JID(from_jid) |