overwrite contact instance when the one that remain is offline. fixes #2569

This commit is contained in:
Yann Leboulanger 2006-11-08 07:36:52 +00:00
parent 17d17ae50f
commit a9624838ef
1 changed files with 2 additions and 1 deletions

View File

@ -531,7 +531,8 @@ class Interface:
# unknow contact or offline message
jid_of_control = jid
chat_control = self.msg_win_mgr.get_control(jid, account)
elif highest_contact and resource != highest_contact.resource:
elif highest_contact and resource != highest_contact.resource and \
highest_contact.show != 'offline':
jid_of_control = full_jid_with_resource
chat_control = None
elif not pm: