Chatstates: Add more log output
This commit is contained in:
		
							parent
							
								
									6a958c5725
								
							
						
					
					
						commit
						5776d3de48
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -301,12 +301,15 @@ class Chatstate:
 | 
				
			||||||
            # which are not allowed to see our status
 | 
					            # which are not allowed to see our status
 | 
				
			||||||
            if not contact.is_pm_contact:
 | 
					            if not contact.is_pm_contact:
 | 
				
			||||||
                if contact and contact.sub in ('to', 'none'):
 | 
					                if contact and contact.sub in ('to', 'none'):
 | 
				
			||||||
 | 
					                    log.info('Contact not subscribed: %s', contact.jid)
 | 
				
			||||||
                    return
 | 
					                    return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if contact.show == 'offline':
 | 
					            if contact.show == 'offline':
 | 
				
			||||||
 | 
					                log.info('Contact offline: %s', contact.jid)
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if not contact.supports(nbxmpp.NS_CHATSTATES):
 | 
					            if not contact.supports(nbxmpp.NS_CHATSTATES):
 | 
				
			||||||
 | 
					                log.info('Chatstates not supported: %s', contact.jid)
 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if state in (State.ACTIVE, State.COMPOSING):
 | 
					        if state in (State.ACTIVE, State.COMPOSING):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue