[Geobert] fix chatstate thing. See #1317

This commit is contained in:
Yann Leboulanger 2006-03-05 21:41:49 +00:00
parent cb6347ebac
commit e8f810f7cb
1 changed files with 3 additions and 3 deletions

View File

@ -900,10 +900,10 @@ class ChatControl(ChatControlBase):
if cs and st in ('composing_only', 'all'): if cs and st in ('composing_only', 'all'):
if contact.show == 'offline': if contact.show == 'offline':
chatstate = '' chatstate = ''
elif st == 'all': elif st == 'all' and contact.composing_jep == 'JEP-0085':
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
else: # 'composing_only' elif st == 'composing_only' or contact.composing_jep == 'JEP-0022':
if chatstate in ('composing', 'paused'): if cs in ('composing', 'paused'):
# only print composing, paused # only print composing, paused
chatstate = helpers.get_uf_chatstate(cs) chatstate = helpers.get_uf_chatstate(cs)
else: else: