don't depend on python2.5 for now. Fixes #4306
This commit is contained in:
parent
8d3c1c59ad
commit
b2c1506d4d
1 changed files with 7 additions and 2 deletions
|
@ -2031,8 +2031,13 @@ class RosterWindow:
|
||||||
del gajim.interface.status_sent_to_users[account][contact.jid]
|
del gajim.interface.status_sent_to_users[account][contact.jid]
|
||||||
|
|
||||||
# Delete pep if needed
|
# Delete pep if needed
|
||||||
keep_pep = any(c.show not in ('error', 'offline') for c in
|
#FIXME: py2.5only
|
||||||
contact_instances)
|
# keep_pep = any(c.show not in ('error', 'offline') for c in
|
||||||
|
# contact_instances)
|
||||||
|
keep_pep = False
|
||||||
|
for c in contact_instances:
|
||||||
|
if c.show not in ('error', 'offline'):
|
||||||
|
keep_pep = True
|
||||||
if not keep_pep and contact.jid != gajim.get_jid_from_account(account) \
|
if not keep_pep and contact.jid != gajim.get_jid_from_account(account) \
|
||||||
and not contact.is_groupchat():
|
and not contact.is_groupchat():
|
||||||
pep.delete_pep(contact.jid, account)
|
pep.delete_pep(contact.jid, account)
|
||||||
|
|
Loading…
Add table
Reference in a new issue