use the new new_private_chat function
This commit is contained in:
		
							parent
							
								
									75eb345ff9
								
							
						
					
					
						commit
						274f8742bb
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -2170,8 +2170,7 @@ class Interface:
 | 
				
			||||||
					show = 'offline'
 | 
										show = 'offline'
 | 
				
			||||||
					gc_contact = gajim.contacts.create_gc_contact(
 | 
										gc_contact = gajim.contacts.create_gc_contact(
 | 
				
			||||||
						room_jid = room_jid, name = nick, show = show)
 | 
											room_jid = room_jid, name = nick, show = show)
 | 
				
			||||||
				c = gajim.contacts.contact_from_gc_contact(gc_contact)
 | 
									self.roster.new_private_chat(gc_contact, account)
 | 
				
			||||||
				self.roster.new_chat(c, account, private_chat = True)
 | 
					 | 
				
			||||||
				w = self.msg_win_mgr.get_window(fjid, account)
 | 
									w = self.msg_win_mgr.get_window(fjid, account)
 | 
				
			||||||
		elif type_ in ('normal', 'file-request', 'file-request-error',
 | 
							elif type_ in ('normal', 'file-request', 'file-request-error',
 | 
				
			||||||
		'file-send-error', 'file-error', 'file-stopped', 'file-completed'):
 | 
							'file-send-error', 'file-error', 'file-stopped', 'file-completed'):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue