do not send chatstate in a contact in pm of MUC if contact left room. thanks deluge

This commit is contained in:
Nikos Kouremenos 2005-08-01 15:45:33 +00:00
parent c18c9c8ca8
commit 28e2203831
1 changed files with 5 additions and 0 deletions

View File

@ -497,6 +497,11 @@ class TabbedChatWindow(chat.Chat):
contact = gajim.get_first_contact_instance_from_jid(self.account, jid)
if contact is None:
# contact was from pm in MUC, and left the room so contact is None
# so we cannot send chatstate anymore
return
if contact.chatstate is False: # jid cannot do jep85
return