Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_contact_list.py @ 1738:baac0fc5e3ad
reverted patch 58ecc0e2e6fc as it may hide an other issue
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 15 Dec 2015 14:25:26 +0100 |
parents | 58ecc0e2e6fc |
children | d17772b0fe22 |
comparison
equal
deleted
inserted
replaced
1737:ad5da569ecf4 | 1738:baac0fc5e3ad |
---|---|
388 try: | 388 try: |
389 groups = self._cache[entity_bare].get(C.CONTACT_GROUPS, set()) | 389 groups = self._cache[entity_bare].get(C.CONTACT_GROUPS, set()) |
390 except KeyError: | 390 except KeyError: |
391 log.warning(_(u"Trying to delete an unknow entity [{}]").format(entity)) | 391 log.warning(_(u"Trying to delete an unknow entity [{}]").format(entity)) |
392 if in_roster: | 392 if in_roster: |
393 try: | 393 self._roster.remove(entity_bare) |
394 self._roster.remove(entity_bare) | |
395 except KeyError: | |
396 pass # contact has been removed already from a concurrent client? | |
397 del self._cache[entity_bare] | 394 del self._cache[entity_bare] |
398 for group in groups: | 395 for group in groups: |
399 self._groups[group]['jids'].remove(entity_bare) | 396 self._groups[group]['jids'].remove(entity_bare) |
400 if not self._groups[group]['jids']: | 397 if not self._groups[group]['jids']: |
401 self._groups.pop(group) | 398 self._groups.pop(group) |