Skip to content
Snippets Groups Projects
Commit a9624838 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 17d17ae5
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment