Don't send chatstates to offline contacts; closes #913

This commit is contained in:
Travis Shirk 2005-09-14 01:27:37 +00:00
parent 6625a9288f
commit dd67ba1006
1 changed files with 4 additions and 0 deletions

View File

@ -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