open chat control with correct resource when we receive a voice call.
This commit is contained in:
		
							parent
							
								
									a1c8ec3ebd
								
							
						
					
					
						commit
						a393b36a3f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -4791,7 +4791,7 @@ class VoIPCallReceivedDialog(object):
 | 
				
			||||||
					contact = gajim.contacts.get_contact(self.account, jid)
 | 
										contact = gajim.contacts.get_contact(self.account, jid)
 | 
				
			||||||
				if not contact:
 | 
									if not contact:
 | 
				
			||||||
					return
 | 
										return
 | 
				
			||||||
				ctrl = gajim.interface.new_chat(contact, self.account)
 | 
									ctrl = gajim.interface.new_chat(contact, self.account, resource)
 | 
				
			||||||
			# Chat control opened, update content's status
 | 
								# Chat control opened, update content's status
 | 
				
			||||||
			if session.get_content('audio'):
 | 
								if session.get_content('audio'):
 | 
				
			||||||
				ctrl.set_audio_state('connecting', self.sid)
 | 
									ctrl.set_audio_state('connecting', self.sid)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue