From b566a9a0db47806f3db026ec5bd651d74b8ce722 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 19 Jul 2005 23:05:30 +0000 Subject: [PATCH] move the previous code in send_chatstate --- src/tabbed_chat_window.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 8e47d6caf..513fd12ff 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -321,9 +321,6 @@ class TabbedChatWindow(chat.Chat): if current_state == False: # he doesn't support chatstates return False # stop looping - # if we're inactive prevent paused (inactive is stronger) - if current_state = 'inactive': - return True print 'mouse', self.mouse_over_in_last_5_secs print 'kbd', self.kbd_activity_in_last_5_secs @@ -453,6 +450,10 @@ class TabbedChatWindow(chat.Chat): # if last state was composing, don't send active if self.chatstates[jid] == 'composing' and state == 'active': return + + # if we're inactive prevent paused (inactive is stronger) + if self.chatstates[jid] == = 'inactive' and state == 'paused': + return True self.chatstates[jid] = state gajim.connections[self.account].send_message(jid, None, None,