summaryrefslogtreecommitdiff
path: root/poezio/tabs/privatetab.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-11-23 20:05:31 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-11-23 20:05:31 +0000
commit304d1cc1abb94213d263f4cad226159f323dd38a (patch)
tree5aada19d7f4c7671b6e67c749c49f9cfbc882b24 /poezio/tabs/privatetab.py
parentd9129c9ced02cc9cadfc41ac283c627a3127dcc1 (diff)
downloadpoezio-304d1cc1abb94213d263f4cad226159f323dd38a.tar.gz
poezio-304d1cc1abb94213d263f4cad226159f323dd38a.tar.bz2
poezio-304d1cc1abb94213d263f4cad226159f323dd38a.tar.xz
poezio-304d1cc1abb94213d263f4cad226159f323dd38a.zip
Remove all remote_wants_chatstates logic, keep the stubs.
Diffstat (limited to 'poezio/tabs/privatetab.py')
-rw-r--r--poezio/tabs/privatetab.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py
index 735522e1..ca5e85ea 100644
--- a/poezio/tabs/privatetab.py
+++ b/poezio/tabs/privatetab.py
@@ -174,8 +174,7 @@ class PrivateTab(OneToOneTab):
msg.enable('html')
msg['html']['body'] = xhtml.poezio_colors_to_html(msg['body'])
msg['body'] = xhtml.clean_text(msg['body'])
- if (config.get_by_tabname('send_chat_states', self.general_jid)
- and self.remote_wants_chatstates is not False):
+ if config.get_by_tabname('send_chat_states', self.general_jid):
needed = 'inactive' if self.inactive else 'active'
msg['chat_state'] = needed
if attention and self.remote_supports_attention:
@@ -420,7 +419,6 @@ class PrivateTab(OneToOneTab):
def deactivate(self, reason=None):
self.on = False
- self.remote_wants_chatstates = None
if reason:
self.add_message(txt=reason, typ=2)