overwrite contact instance when the one that remain is offline. fixes #2569
This commit is contained in:
parent
17d17ae50f
commit
a9624838ef
1 changed files with 2 additions and 1 deletions
|
@ -531,7 +531,8 @@ class Interface:
|
||||||
# unknow contact or offline message
|
# unknow contact or offline message
|
||||||
jid_of_control = jid
|
jid_of_control = jid
|
||||||
chat_control = self.msg_win_mgr.get_control(jid, account)
|
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
|
jid_of_control = full_jid_with_resource
|
||||||
chat_control = None
|
chat_control = None
|
||||||
elif not pm:
|
elif not pm:
|
||||||
|
|
Loading…
Add table
Reference in a new issue