fix TB when receiving message from unknown contact
This commit is contained in:
parent
fb758eaf89
commit
297f97a606
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ class Interface:
|
||||||
ctrl = self.msg_win_mgr.get_control(fjid, account)
|
ctrl = self.msg_win_mgr.get_control(fjid, account)
|
||||||
if ctrl:
|
if ctrl:
|
||||||
chat_control = ctrl
|
chat_control = ctrl
|
||||||
elif resource != highest_contact.resource:
|
elif not highest_contact or resource != highest_contact.resource:
|
||||||
chat_control = None
|
chat_control = None
|
||||||
jid_of_control = fjid
|
jid_of_control = fjid
|
||||||
# Handle chat states
|
# Handle chat states
|
||||||
|
|
Loading…
Add table
Reference in a new issue