don't show hidden contacts that are not in observer group. Fixes #1494
This commit is contained in:
		
							parent
							
								
									4f2460e21c
								
							
						
					
					
						commit
						f19dc78297
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -222,8 +222,11 @@ class RosterWindow:
 | 
				
			||||||
			hide = False
 | 
								hide = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		observer = False
 | 
							observer = False
 | 
				
			||||||
		if hide and contact.sub == 'from':
 | 
							if hide:
 | 
				
			||||||
 | 
								if contact.sub == 'from':
 | 
				
			||||||
				observer = True
 | 
									observer = True
 | 
				
			||||||
 | 
								else:
 | 
				
			||||||
 | 
									return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (contact.show in ('offline', 'error') or hide) and \
 | 
							if (contact.show in ('offline', 'error') or hide) and \
 | 
				
			||||||
			not showOffline and (not _('Transports') in contact.groups or \
 | 
								not showOffline and (not _('Transports') in contact.groups or \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue