Philipp Hörist pushed to branch master at gajim / gajim
Commits:
228de686 by Philipp Hörist at 2025-02-16T13:21:03+01:00
refactor: AccountWizard: Supply all arguments to JID
- - - - -
1 changed file:
- gajim/gtk/account_wizard.py
Changes:
=====================================
gajim/gtk/account_wizard.py
=====================================
@@ -326,7 +326,7 @@ def _test_anonymous_server(self, ignore_all_errors: bool =
False) -> None:
domain = self.get_page("signup").get_server()
advanced = self.get_page("signup").is_advanced()
- address = JID(domain=domain)
+ address = JID(localpart=None, domain=domain, resource=None)
self._client = self._get_base_client(
address, Mode.ANONYMOUS_TEST, advanced, ignore_all_errors
@@ -340,7 +340,7 @@ def _register_with_server(self, ignore_all_errors: bool =
False) -> None:
domain = self.get_page("signup").get_server()
advanced = self.get_page("signup").is_advanced()
- address = JID(domain=domain)
+ address = JID(localpart=None, domain=domain, resource=None)
self._client = self._get_base_client(
address, Mode.REGISTER, advanced, ignore_all_errors
@@ -356,7 +356,7 @@ def _on_login_successful(self, client: NBXMPPClient,
_signal_name: str) -> None:
if client.proxy is not None:
proxy_name = self.get_page("advanced").get_proxy()
- address = JID(localpart=client.username, domain=client.domain)
+ address = JID(localpart=client.username, domain=client.domain,
resource=None)
app.app.create_account(
account, address, client.password, proxy_name, client.custom_host
@@ -376,7 +376,7 @@ def _on_anonymous_supported(self, client: NBXMPPClient,
_signal_name: str) -> No
if client.proxy is not None:
proxy_name = self.get_page("advanced").get_proxy()
- address = JID(domain=client.domain)
+ address = JID(localpart=None, domain=client.domain, resource=None)
app.app.create_account(
account,
@@ -530,7 +530,7 @@ def _on_register_result(self, task: Task) -> None:
if self._client.proxy is not None:
proxy_name = self.get_page("advanced").get_proxy()
- address = JID(localpart=username, domain=self._client.domain)
+ address = JID(localpart=username, domain=self._client.domain,
resource=None)
app.app.create_account(
account, address, password, proxy_name, self._client.custom_host
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/228de686c36f44792fad3a256c9a023dc285a37e
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/228de686c36f44792fad3a256c9a023dc285a37e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]