fix TB when receiving message from unknown contact

This commit is contained in:
Yann Leboulanger 2006-03-26 12:09:34 +00:00
parent fb758eaf89
commit 297f97a606
1 changed files with 1 additions and 1 deletions

View File

@ -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