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

MUC: Set active chatstate on messages

parent ba44f98d
No related branches found
No related tags found
No related merge requests found
......@@ -166,12 +166,13 @@ class Chatstate:
if setting == 'disabled':
return None
# Dont send chatstates to ourself
if self._con.get_own_jid().bareMatch(contact.jid):
return None
if not contact.is_groupchat():
# Dont send chatstates to ourself
if self._con.get_own_jid().bareMatch(contact.jid):
return None
if not contact.supports(nbxmpp.NS_CHATSTATES):
return None
if not contact.supports(nbxmpp.NS_CHATSTATES):
return None
self.set_active(contact.jid)
return 'active'
......
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