From f4ce42c8c7357f6545f4d0e70882fef3fd02a4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 19 Mar 2022 10:30:56 +0100 Subject: poezio/connection: register xep_0454 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/connection.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/poezio/connection.py b/poezio/connection.py index 55cf76e3..291c3cd5 100644 --- a/poezio/connection.py +++ b/poezio/connection.py @@ -204,6 +204,11 @@ class Connection(slixmpp.ClientXMPP): log.error('Failed to load HTTP File Upload plugin, it can only be ' 'used with aiohttp installed') self.register_plugin('xep_0380') + try: + self.register_plugin('xep_0454') + except slixmpp.plugins.base.PluginNotFound: + log.error('Failed to load Media Sharing plugin, ' + 'it requires slixmpp 1.8.1.') self.init_plugins() def set_keepalive_values(self, option=None, value=None): -- cgit v1.2.3