comparison frontends/src/primitivus/contact_list.py @ 507:f98bef71a918

frontends, core, plugin XEP-0045: leave implementation + better nick change - memory: individual entity cache can be deleted - plugin XEP-0045: nick change are now detected and userChangedNick signal is sent instead of joined/left - plugin XEP-0045: leave implementation - frontends: userChangedNick signal management - Primitivus: an alert is shown in notification bar in case of error in sendMessage
author Goffi <goffi@goffi.org>
date Fri, 28 Sep 2012 00:26:24 +0200
parents debcf5dd404a
children 886754295efe
comparison
equal deleted inserted replaced
506:2e43c74815ad 507:f98bef71a918
237 contacts.remove(jid.short) 237 contacts.remove(jid.short)
238 if not len(contacts): 238 if not len(contacts):
239 groups_to_remove.append(group) 239 groups_to_remove.append(group)
240 for group in groups_to_remove: 240 for group in groups_to_remove:
241 del self.groups[group] 241 del self.groups[group]
242 try:
243 del self.special[jid.short]
244 except KeyError:
245 pass
242 self.update() 246 self.update()
243 247
244 def add(self, jid, param_groups=[None]): 248 def add(self, jid, param_groups=[None]):
245 """add a contact to the list""" 249 """add a contact to the list"""
246 self.replace(jid,param_groups) 250 self.replace(jid,param_groups)