Abide by composing-only chatstate configuration; closes #945
This commit is contained in:
		
							parent
							
								
									a7ee9425be
								
							
						
					
					
						commit
						83aa034a24
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -546,7 +546,10 @@ timestamp, contact):
 | 
				
			||||||
		# do not send nothing if we have chat state notifications disabled
 | 
							# do not send nothing if we have chat state notifications disabled
 | 
				
			||||||
		# that means we won't reply to the <active/> from other peer
 | 
							# that means we won't reply to the <active/> from other peer
 | 
				
			||||||
		# so we do not broadcast jep85 capabalities
 | 
							# so we do not broadcast jep85 capabalities
 | 
				
			||||||
		if gajim.config.get('chat_state_notifications') == 'disabled':
 | 
							chatstate_setting = gajim.config.get('chat_state_notifications')
 | 
				
			||||||
 | 
							if chatstate_setting == 'disabled':
 | 
				
			||||||
 | 
								return
 | 
				
			||||||
 | 
							elif chatstate_setting == 'composing_only' and state != 'active' and state != 'composing':
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if jid is None:
 | 
							if jid is None:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue