Do not traceback when disconnecting from a minimized groupchat. Fixes #4255.

This commit is contained in:
Stephan Erb 2008-08-30 19:33:13 +00:00
parent b2e3c2cc72
commit 19866c99a9
1 changed files with 3 additions and 5 deletions

View File

@ -1090,11 +1090,9 @@ class RosterWindow:
name = '<span strikethrough="true">%s</span>' % name
# Delete pep if needed
delete_pep = True
for c in contact_instances:
if c.show not in ('error', 'offline'):
delete_pep = False
if delete_pep:
keep_pep = any(c.show not in ('error', 'offline') for c in
contact_instances)
if not keep_pep and not contact.is_groupchat():
pep.delete_pep(jid, account)
# Show resource counter