From f1f1ccd5063ca12a4c6a1a5631ee511331e882fe Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 16 Apr 2021 19:13:45 +0200 Subject: internal: remove the xep-0319 implementation It is not privacy-friendly and not performance-friendly to have more code called on each input when in "available" status --- poezio/connection.py | 4 ---- poezio/core/core.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/poezio/connection.py b/poezio/connection.py index 06715b6b..c24dd913 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -192,14 +192,10 @@ class Connection(slixmpp.ClientXMPP): self.register_plugin('xep_0297') self.register_plugin('xep_0308') self.register_plugin('xep_0313') - self.register_plugin('xep_0319') self.register_plugin('xep_0334') self.register_plugin('xep_0352') try: self.register_plugin('xep_0363') - except SyntaxError: - log.error('Failed to load HTTP File Upload plugin, it can only be ' - 'used on Python 3.5+') except slixmpp.plugins.base.PluginNotFound: log.error('Failed to load HTTP File Upload plugin, it can only be ' 'used with aiohttp installed') diff --git a/poezio/core/core.py b/poezio/core/core.py index ac12ec42..3ab5c600 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -672,10 +672,6 @@ class Core: self.do_command(replace_line_breaks(char), False) else: self.do_command(''.join(char_list), True) - if self.status.show not in ('xa', 'away'): - asyncio.ensure_future( - self.xmpp.plugin['xep_0319'].idle() - ) self.doupdate() def save_config(self): -- cgit v1.2.3