Do not traceback when disconnecting from a minimized groupchat. Fixes #4255.
This commit is contained in:
parent
b2e3c2cc72
commit
19866c99a9
1 changed files with 3 additions and 5 deletions
|
@ -1090,11 +1090,9 @@ class RosterWindow:
|
||||||
name = '<span strikethrough="true">%s</span>' % name
|
name = '<span strikethrough="true">%s</span>' % name
|
||||||
|
|
||||||
# Delete pep if needed
|
# Delete pep if needed
|
||||||
delete_pep = True
|
keep_pep = any(c.show not in ('error', 'offline') for c in
|
||||||
for c in contact_instances:
|
contact_instances)
|
||||||
if c.show not in ('error', 'offline'):
|
if not keep_pep and not contact.is_groupchat():
|
||||||
delete_pep = False
|
|
||||||
if delete_pep:
|
|
||||||
pep.delete_pep(jid, account)
|
pep.delete_pep(jid, account)
|
||||||
|
|
||||||
# Show resource counter
|
# Show resource counter
|
||||||
|
|
Loading…
Add table
Reference in a new issue