handle correctly offline message (don't take into account the resource)

This commit is contained in:
Yann Leboulanger 2006-03-27 08:50:06 +00:00
parent 88730b1ea1
commit 4f6c6d3d14
1 changed files with 5 additions and 1 deletions

View File

@ -513,7 +513,11 @@ class Interface:
ctrl = self.msg_win_mgr.get_control(fjid, account)
if ctrl:
chat_control = ctrl
elif not highest_contact or resource != highest_contact.resource:
elif not highest_contact or not highest_contact.resource:
# unknow contact or offline message
chat_control = None
jid_of_control = jid
elif resource != highest_contact.resource:
chat_control = None
jid_of_control = fjid
# Handle chat states