From 0d7316be2dfb447240af96df1f20df9e2cdad0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 18 Oct 2019 23:34:09 +0200 Subject: [PATCH] AccountCreation: Register plugin modules after successful registration Fixes #9856 --- gajim/gtk/account_wizard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gajim/gtk/account_wizard.py b/gajim/gtk/account_wizard.py index 2269bd5a3..e03905621 100644 --- a/gajim/gtk/account_wizard.py +++ b/gajim/gtk/account_wizard.py @@ -293,7 +293,6 @@ class AccountCreationWizard: 100, self.update_progressbar) # Get form from serveur con = connection.Connection(self.account) - app.plugin_manager.register_modules_for_account(con) app.connections[self.account] = con con.new_account(self.account, config) elif cur_page == 3: @@ -458,6 +457,10 @@ class AccountCreationWizard: self.create_vars(obj.account_info) self.show_finish_page() + # Register plugin modules after successful registration + # Some plugins need the registered JID to function properly + app.plugin_manager.register_modules_for_account(obj.conn) + if self.update_progressbar_timeout_id is not None: GLib.source_remove(self.update_progressbar_timeout_id) -- GitLab