From 156cfb55465371ae95ea61cd02cfcfda442cb1f4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 8 Oct 2017 21:30:11 +0200 Subject: Fix #3056 (send inactive chatstate when leaving a tab) --- poezio/tabs/privatetab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/tabs/privatetab.py') diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index 9279929a..ec3ed74a 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -280,7 +280,7 @@ class PrivateTab(OneToOneTab): self.text_win.add_line_separator(self._text_buffer) tab = self.core.get_tab_by_name(safeJID(self.name).bare, MucTab) if tab and tab.joined and config.get_by_tabname('send_chat_states', - self.general_jid) and not self.input.get_text() and self.on: + self.general_jid) and self.on: self.send_chat_state('inactive') self.check_scrolled() -- cgit v1.2.3