diff frontends/src/quick_frontend/quick_contact_list.py @ 1058:0a9986452bba

frontends: fixes bug with private message introduced with revision 1000 (6f1e03068b5f) + display messages from contacts not in roster
author souliane <souliane@mailoo.org>
date Thu, 29 May 2014 14:34:01 +0200
parents d1084f7e56a5
children 03661d1b216a
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py	Sun Jun 08 17:39:21 2014 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Thu May 29 14:34:01 2014 +0200
@@ -57,11 +57,16 @@
     def replace(self, jid, groups=None, attributes=None):
         """Add a contact to the list if doesn't exist, else update it.
 
+        This method can be called with groups=None for the purpose of updating
+        the contact's attributes (e.g. nickname). In that case, the groups
+        attribute must not be set to the default group but ignored. If not,
+        you may move your contact from its actual group(s) to the default one.
+
+        None value for 'groups' has a different meaning than [None] which is for the default group.
+
         @param jid (JID)
         @param groups (list): list of groups or None to ignore the groups membership.
         @param attributes (dict)
-
-        XXX: None value for 'groups' has a different meaning than [None] which is for the default group.
         """
         if attributes and 'name' in attributes:
             self.setCache(jid, 'name', attributes['name'])