MUC: Set active chatstate on messages
This commit is contained in:
parent
ba44f98d97
commit
65f74e3d9f
|
@ -166,12 +166,13 @@ class Chatstate:
|
||||||
if setting == 'disabled':
|
if setting == 'disabled':
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Dont send chatstates to ourself
|
if not contact.is_groupchat():
|
||||||
if self._con.get_own_jid().bareMatch(contact.jid):
|
# Dont send chatstates to ourself
|
||||||
return None
|
if self._con.get_own_jid().bareMatch(contact.jid):
|
||||||
|
return None
|
||||||
|
|
||||||
if not contact.supports(nbxmpp.NS_CHATSTATES):
|
if not contact.supports(nbxmpp.NS_CHATSTATES):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
self.set_active(contact.jid)
|
self.set_active(contact.jid)
|
||||||
return 'active'
|
return 'active'
|
||||||
|
|
Loading…
Reference in New Issue