don't activate auto away if we connect as away or invisible or anything else than online
This commit is contained in:
		
							parent
							
								
									e82dc00a96
								
							
						
					
					
						commit
						5f48392890
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1313,7 +1313,8 @@ class Interface:
 | 
			
		|||
	def handle_event_signed_in(self, account, empty):
 | 
			
		||||
		'''SIGNED_IN event is emitted when we sign in, so handle it'''
 | 
			
		||||
		self.roster.actions_menu_needs_rebuild = True
 | 
			
		||||
		if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN:
 | 
			
		||||
		if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN and \
 | 
			
		||||
		gajim.connections[account].connected == 2: # we go online, not away
 | 
			
		||||
			gajim.sleeper_state[account] = 'online'
 | 
			
		||||
		else:
 | 
			
		||||
			gajim.sleeper_state[account] = 'off'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue