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

fix TB when receiving message from unknown contact

parent fb758eaf
No related branches found
No related tags found
No related merge requests found
......@@ -513,7 +513,7 @@ class Interface:
ctrl = self.msg_win_mgr.get_control(fjid, account)
if ctrl:
chat_control = ctrl
elif resource != highest_contact.resource:
elif not highest_contact or resource != highest_contact.resource:
chat_control = None
jid_of_control = fjid
# Handle chat states
......
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