Skip to content
Snippets Groups Projects
Commit 5776d3de authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Chatstates: Add more log output

parent 6a958c57
No related branches found
No related tags found
No related merge requests found
......@@ -301,12 +301,15 @@ class Chatstate:
# which are not allowed to see our status
if not contact.is_pm_contact:
if contact and contact.sub in ('to', 'none'):
log.info('Contact not subscribed: %s', contact.jid)
return
if contact.show == 'offline':
log.info('Contact offline: %s', contact.jid)
return
if not contact.supports(nbxmpp.NS_CHATSTATES):
log.info('Chatstates not supported: %s', contact.jid)
return
if state in (State.ACTIVE, State.COMPOSING):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment