when a child change his status, redraw parent line too (parent icon may depend on children status). Fixes #1649
This commit is contained in:
		
							parent
							
								
									c88b4faf65
								
							
						
					
					
						commit
						08d07e3ffc
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -402,6 +402,10 @@ class RosterWindow:
 | 
				
			||||||
				state_images = self.get_appropriate_state_images(jid,
 | 
									state_images = self.get_appropriate_state_images(jid,
 | 
				
			||||||
					size = 'closed', icon_name = icon_name)
 | 
										size = 'closed', icon_name = icon_name)
 | 
				
			||||||
		else:
 | 
							else:
 | 
				
			||||||
 | 
								# redraw parent
 | 
				
			||||||
 | 
								if gajim.contacts.is_subcontact(account, contact):
 | 
				
			||||||
 | 
									parent_jid = gajim.contacts.get_parent_contact(account, contact).jid
 | 
				
			||||||
 | 
									self.draw_contact(parent_jid, account)
 | 
				
			||||||
			state_images = self.get_appropriate_state_images(jid,
 | 
								state_images = self.get_appropriate_state_images(jid,
 | 
				
			||||||
				icon_name = icon_name)
 | 
									icon_name = icon_name)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue