Don't send chatstates to offline contacts; closes #913
This commit is contained in:
parent
6625a9288f
commit
dd67ba1006
|
@ -569,6 +569,10 @@ timestamp, contact):
|
||||||
# so we cannot send chatstate anymore
|
# so we cannot send chatstate anymore
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Don't send chatstates to offline contacts
|
||||||
|
if contact.show == 'offline':
|
||||||
|
return
|
||||||
|
|
||||||
if contact.chatstate is False: # jid cannot do jep85
|
if contact.chatstate is False: # jid cannot do jep85
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue