diff 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
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Sat May 28 20:28:21 2011 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Sun May 29 16:12:08 2011 +0200
@@ -203,7 +203,11 @@
         if not self.check_profile(profile):
             return
         entity=JID(JabberId)
-        self.rosterList[entity.short]=(dict(attributes), list(groups))
+        _groups = list(groups)
+        self.rosterList[entity.short]=(dict(attributes), _groups)
+        if entity in self.CM:
+            self.CM.update(entity, 'groups', _groups)
+            self.contactList.replace(entity, self.CM.getAttr(entity, 'groups'))
     
     def newMessage(self, from_jid, msg, type, to_jid, profile):
         if not self.check_profile(profile):