Fix Modelfilter regression: disconnecting a minimized groupchat was broken.
This commit is contained in:
		
							parent
							
								
									fb12c17fb9
								
							
						
					
					
						commit
						465aab8200
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -2668,12 +2668,8 @@ class RosterWindow:
 | 
			
		|||
		ctrl.shutdown()
 | 
			
		||||
 | 
			
		||||
		contact = gajim.contacts.get_contact_with_highest_priority(account, jid)
 | 
			
		||||
		if not contact:
 | 
			
		||||
			return
 | 
			
		||||
		if contact.groups == [_('Groupchats')]:
 | 
			
		||||
			# FIXME: use proper API
 | 
			
		||||
			gajim.contacts.remove_contact(account, contact)
 | 
			
		||||
			self.remove_contact(contact.jid, account)
 | 
			
		||||
			self.remove_groupchat(contact.jid, account)
 | 
			
		||||
 | 
			
		||||
	def on_send_single_message_menuitem_activate(self, widget, account,
 | 
			
		||||
	contact = None):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue