From 28e2203831d33eadc1f3b6c804131bfb23448497 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 1 Aug 2005 15:45:33 +0000 Subject: [PATCH] do not send chatstate in a contact in pm of MUC if contact left room. thanks deluge --- src/tabbed_chat_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 0accc8efe..21908a5dc 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -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