[Geobert] fix chatstate thing. See #1317
This commit is contained in:
parent
cb6347ebac
commit
e8f810f7cb
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue