diff options
author | mathieui <mathieui@mathieui.net> | 2017-10-08 21:30:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-10-08 21:30:11 +0200 |
commit | 156cfb55465371ae95ea61cd02cfcfda442cb1f4 (patch) | |
tree | 19ccf4a06127bd8dda4a5f9a2849abfd1729609a /poezio/tabs/conversationtab.py | |
parent | 7592aebcdcf40450c72c538bdc5aff0089a45f45 (diff) | |
download | poezio-156cfb55465371ae95ea61cd02cfcfda442cb1f4.tar.gz poezio-156cfb55465371ae95ea61cd02cfcfda442cb1f4.tar.bz2 poezio-156cfb55465371ae95ea61cd02cfcfda442cb1f4.tar.xz poezio-156cfb55465371ae95ea61cd02cfcfda442cb1f4.zip |
Fix #3056 (send inactive chatstate when leaving a tab)
Diffstat (limited to 'poezio/tabs/conversationtab.py')
-rw-r--r-- | poezio/tabs/conversationtab.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 9f7c1391..8c128797 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -324,9 +324,7 @@ class ConversationTab(OneToOneTab): self.state = 'normal' self.text_win.remove_line_separator() self.text_win.add_line_separator(self._text_buffer) - if (config.get_by_tabname('send_chat_states', self.general_jid) - and (not self.input.get_text() - or not self.input.get_text().startswith('//'))): + if config.get_by_tabname('send_chat_states', self.general_jid): if resource: self.send_chat_state('inactive') self.check_scrolled() |