Don't allow notifs when we are away/xa/dnd and autopopupaway is False.
(Undo second part of [6735])
This commit is contained in:
		
							parent
							
								
									9809043057
								
							
						
					
					
						commit
						8c07a06622
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -741,8 +741,6 @@ first = True):
 | 
			
		|||
			return False
 | 
			
		||||
	if type and (not gajim.config.get(type) or not first):
 | 
			
		||||
		return False
 | 
			
		||||
	if type and gajim.config.get(type) and first:
 | 
			
		||||
		return True
 | 
			
		||||
	if gajim.config.get('autopopupaway'): # always show notification
 | 
			
		||||
		return True
 | 
			
		||||
	if gajim.connections[account].connected in (2, 3): # we're online or chat
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue