update contact's chatstate when we receive it

This commit is contained in:
Yann Leboulanger 2005-10-20 09:35:00 +00:00
parent 8060b8b515
commit a7300534f8
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ class Interface:
if chatstate is not None: # he sent us reply, so he supports jep85
if contact.chatstate == 'ask': # we were jep85 disco?
contact.chatstate = 'active' # no more
else:
contact.chatstate = chatstate
chat_win.handle_incoming_chatstate(account, jid, chatstate)
elif contact.chatstate != 'active':