diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-11-04 14:47:24 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-11-04 15:28:31 +0300 |
commit | a7162c47915b3bf74d44342c6264c9853fc5f46b (patch) | |
tree | 9f154513fea17fb6ac3df2be3cb97ed21acf4a35 | |
parent | 0611f8d683560d9fad8877a1ca4f7208c39d88d2 (diff) |
fix: ServerInfo: Use domain instead of hostname for queries
Fixes #11653
-rw-r--r-- | gajim/gtk/server_info.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gajim/gtk/server_info.py b/gajim/gtk/server_info.py index 19f0de7e3..e09b08090 100644 --- a/gajim/gtk/server_info.py +++ b/gajim/gtk/server_info.py @@ -86,11 +86,13 @@ class ServerInfo(Gtk.ApplicationWindow, EventHelper): self._version = '' self._hostname = app.get_hostname_from_account(account) self._ui.server_hostname.set_text(self._hostname) + + domain = self._client.get_own_jid().domain self._client.get_module('SoftwareVersion').request_software_version( - self._hostname, callback=self._software_version_received) + domain, callback=self._software_version_received) self._client.get_module('LastActivity').request_last_activity( - self._hostname, callback=self._on_last_activity) + domain, callback=self._on_last_activity) server_info = self._client.get_module('Discovery').server_info self._add_contact_addresses(server_info.dataforms) |