Compare commits

..

1 Commits

Author SHA1 Message Date
1f38ff0522 feat: Autoping availability warning
Some checks failed
CI Code / Check spelling (pull_request) Successful in 27s
CI Code / Check coding style (pull_request) Failing after 34s
CI Code / Linux (debian) (pull_request) Successful in 16m21s
CI Code / Code Coverage (pull_request) Successful in 18m3s
CI Code / Linux (ubuntu) (pull_request) Successful in 18m21s
CI Code / Linux (arch) (pull_request) Successful in 20m32s
2026-01-27 20:56:28 +01:00

View File

@@ -2453,9 +2453,8 @@ _disco_autoping_warning_message(GHashTable* features)
{
gboolean server_supports_ping = g_hash_table_contains(features, "urn:xmpp:ping");
gboolean users_prefers_warning = prefs_get_boolean(PREF_AUTOPING_WARNING);
gboolean is_autoping_enabled = prefs_get_autoping() != 0;
if (!is_autoping_enabled && server_supports_ping && users_prefers_warning) {
if (server_supports_ping && users_prefers_warning) {
cons_show("This server supports XEP-0199: XMPP Ping (better keepalive detection),\n"
"but autoping feature is currently disabled in settings.\n"
"Consider enabling it (e.g., `/autoping set 30`) for improved connection stability.\n"