Abide by composing-only chatstate configuration; closes #945

This commit is contained in:
Travis Shirk 2005-09-20 18:33:11 +00:00
parent a7ee9425be
commit 83aa034a24
1 changed files with 4 additions and 1 deletions

View File

@ -546,7 +546,10 @@ timestamp, contact):
# do not send nothing if we have chat state notifications disabled
# that means we won't reply to the <active/> from other peer
# so we do not broadcast jep85 capabalities
if gajim.config.get('chat_state_notifications') == 'disabled':
chatstate_setting = gajim.config.get('chat_state_notifications')
if chatstate_setting == 'disabled':
return
elif chatstate_setting == 'composing_only' and state != 'active' and state != 'composing':
return
if jid is None: