From 9209a98764958f398570c37d1e04734b7baf83b7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 2 Mar 2006 06:49:25 +0000 Subject: [PATCH] fix logic/TB. See #1639 --- src/common/connection.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index eaacb3ad5..34cb5e1d2 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -417,9 +417,10 @@ class Connection: # No JEP-0085 support, fallback to JEP-0022 if not chatstate: chatstate_child = msg.getTag('x', namespace = common.xmpp.NS_EVENT) - chatstate = 'active' - if not msgtxt and chatstate_child.getTag('composing'): - chatstate = 'composing' + if chatstate_child: + chatstate = 'active' + if not msgtxt and chatstate_child.getTag('composing'): + chatstate = 'composing' if encTag and USE_GPG: #decrypt