Stop asking for xep85 (chat notifs) many times, xep says ask only one. Can

break notifs with gajim 0.10.1 or less. Fixes #2711.
This commit is contained in:
Jean-Marie Traissard 2007-03-31 12:21:53 +00:00
parent 698b5c96f7
commit 8500cbcda7
1 changed files with 3 additions and 7 deletions

View File

@ -1153,13 +1153,9 @@ class ChatControl(ChatControlBase):
# because we want it sent with REAL message
# (not standlone) eg. one that has body
#FIXME:
# Enable 3 next lines after 0.11 release.
# Having this disabled violate xep85 5.1.2 but then we don't break
# notifications between 0.10.1 and 0.11 See #2637
# if contact.our_chatstate:
# # We already ask for xep 85, don't ask it twice
# composing_jep = 'asked_once'
if contact.our_chatstate:
# We already asked for xep 85, don't ask it twice
composing_jep = 'asked_once'
chatstate_to_send = 'active'
contact.our_chatstate = 'ask' # pseudo state