don't delete pep when a second resource of our jid goes offline. Maybe addresses #4284?

This commit is contained in:
Yann Leboulanger 2008-09-08 11:52:29 +00:00
parent 9a8dd5db02
commit 93149f6936
1 changed files with 2 additions and 1 deletions

View File

@ -2033,7 +2033,8 @@ class RosterWindow:
# Delete pep if needed
keep_pep = any(c.show not in ('error', 'offline') for c in
contact_instances)
if not keep_pep and not contact.is_groupchat():
if not keep_pep and contact.jid != gajim.get_jid_from_account(account) \
and not contact.is_groupchat():
pep.delete_pep(contact.jid, account)
# Redraw everything and select the sender