[peralta] inactive is stronger than paused so do not allow going paused if inactive
This commit is contained in:
		
							parent
							
								
									c7c695d902
								
							
						
					
					
						commit
						97d918d83d
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
		
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue