update contact's chatstate when we receive it
This commit is contained in:
parent
8060b8b515
commit
a7300534f8
|
@ -430,6 +430,8 @@ class Interface:
|
||||||
if chatstate is not None: # he sent us reply, so he supports jep85
|
if chatstate is not None: # he sent us reply, so he supports jep85
|
||||||
if contact.chatstate == 'ask': # we were jep85 disco?
|
if contact.chatstate == 'ask': # we were jep85 disco?
|
||||||
contact.chatstate = 'active' # no more
|
contact.chatstate = 'active' # no more
|
||||||
|
else:
|
||||||
|
contact.chatstate = chatstate
|
||||||
|
|
||||||
chat_win.handle_incoming_chatstate(account, jid, chatstate)
|
chat_win.handle_incoming_chatstate(account, jid, chatstate)
|
||||||
elif contact.chatstate != 'active':
|
elif contact.chatstate != 'active':
|
||||||
|
|
Loading…
Reference in New Issue