fix TB when receiving message from unknown contact
This commit is contained in:
parent
fb758eaf89
commit
297f97a606
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue