don't accept server resource as another
resource of our contact
This commit is contained in:
		
							parent
							
								
									aef7ebfa18
								
							
						
					
					
						commit
						81be580422
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -396,6 +396,8 @@ class Interface:
 | 
			
		|||
				contact1 = gajim.contacts.get_first_contact_from_jid(account, ji)
 | 
			
		||||
				if not contact1:
 | 
			
		||||
					# presence of another resource of out jid
 | 
			
		||||
					if resource == gajim.connections[account].server_resource:
 | 
			
		||||
						resource = gajim.config.get_per('accounts', account, 'resource')
 | 
			
		||||
					contact1 = gajim.contacts.create_contact(jid = ji,
 | 
			
		||||
						name = gajim.nicks[account], groups = [],
 | 
			
		||||
						show = array[1], status = status_message, sub = 'both',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue