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

View file

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