[peralta] inactive is stronger than paused so do not allow going paused if inactive

This commit is contained in:
Nikos Kouremenos 2005-07-19 23:02:58 +00:00
parent c7c695d902
commit 97d918d83d
1 changed files with 4 additions and 0 deletions

View File

@ -320,6 +320,10 @@ class TabbedChatWindow(chat.Chat):
current_state = self.chatstates[contact.jid]
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