Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5307fb2b by André Apitzsch at 2022-03-23T17:22:48+00:00
SoftwareVersion: Only disable OS information
Only disable the OS info but not sending the client version, because it
is leaked via disco info anyway.
- - - - -
1 changed file:
- gajim/common/modules/software_version.py
Changes:
=====================================
gajim/common/modules/software_version.py
=====================================
@@ -32,15 +32,13 @@ def __init__(self, con):
BaseModule.__init__(self, con)
def set_enabled(self, enabled):
- if not enabled:
- self._nbxmpp('SoftwareVersion').disable()
- return
-
- if not app.settings.get_account_setting(self._account, 'send_os_info'):
- return
-
+ if enabled and app.settings.get_account_setting(self._account,
+ 'send_os_info'):
+ os_info = get_os_info()
+ else:
+ os_info = None
self._nbxmpp('SoftwareVersion').set_software_version(
- 'Gajim', app.version, get_os_info())
+ 'Gajim', app.version, os_info)
self._nbxmpp('SoftwareVersion').set_allow_reply_func(self._allow_reply)
def _allow_reply(self, jid):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5307fb2b2040d2a3da2360d09616e1cb49b84981
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5307fb2b2040d2a3da2360d09616e1cb49b84981
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits