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

View file

@ -513,7 +513,11 @@ 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 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 chat_control = None
jid_of_control = fjid jid_of_control = fjid
# Handle chat states # Handle chat states