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

View file

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