reset chatstate of a contact that signed out
This commit is contained in:
		
							parent
							
								
									0c64b91de4
								
							
						
					
					
						commit
						485dc4bcbb
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -363,6 +363,10 @@ class Interface:
 | 
			
		|||
					self.remote.raise_signal('ContactPresence',
 | 
			
		||||
						(account, array))
 | 
			
		||||
				
 | 
			
		||||
				# when contact signs out we reset his chatstate
 | 
			
		||||
				contact = gaim.get_first_contact_instance_from_jid(acccount, jid)
 | 
			
		||||
				contact.chatstate = None
 | 
			
		||||
						
 | 
			
		||||
			elif old_show > 1 and new_show < 2:
 | 
			
		||||
				if gajim.config.get_per('soundevents', 'contact_disconnected',
 | 
			
		||||
												'enabled'):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue