handle correctly offline message (don't take into account the resource)
This commit is contained in:
		
							parent
							
								
									88730b1ea1
								
							
						
					
					
						commit
						4f6c6d3d14
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -513,7 +513,11 @@ class Interface:
 | 
			
		|||
		ctrl = self.msg_win_mgr.get_control(fjid, account)
 | 
			
		||||
		if ctrl:
 | 
			
		||||
			chat_control = ctrl
 | 
			
		||||
		elif not highest_contact or resource != highest_contact.resource:
 | 
			
		||||
		elif not highest_contact or not highest_contact.resource:
 | 
			
		||||
			# unknow contact or offline message
 | 
			
		||||
			chat_control = None
 | 
			
		||||
			jid_of_control = jid
 | 
			
		||||
		elif resource != highest_contact.resource:
 | 
			
		||||
			chat_control = None
 | 
			
		||||
			jid_of_control = fjid
 | 
			
		||||
		# Handle chat states  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue