From 8500cbcda70bf9e6c85c0eae4d1e86b882645f18 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sat, 31 Mar 2007 12:21:53 +0000 Subject: [PATCH] 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. --- src/chat_control.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index ff09e3c06..57c273459 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -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