fix(xmpp): prevent autoping warning repetition on disco items
All checks were successful
CI Code / Check spelling (pull_request) Successful in 17s
CI Code / Check coding style (pull_request) Successful in 31s
CI Code / Code Coverage (pull_request) Successful in 4m0s
CI Code / Linux (debian) (pull_request) Successful in 5m5s
CI Code / Linux (ubuntu) (pull_request) Successful in 5m12s
CI Code / Linux (arch) (pull_request) Successful in 6m55s

The previous logic triggered warnings for disco items. This change restricts the check to only the connection domain, ensuring that auto-discovered items do not trigger duplicate warnings.
This commit is contained in:
2026-06-21 15:37:16 +00:00
parent 7fd0cded3d
commit b5bbad8d2c

View File

@@ -2431,7 +2431,8 @@ _disco_info_response_id_handler_onconnect(xmpp_stanza_t* const stanza, void* con
child = xmpp_stanza_get_next(child);
}
if (!from || !strstr(from, "@")) {
// Prevent repetitions by avoiding checks of disco items (from connection_set_disco_items)
if (from && g_strcmp0(from, connection_get_domain()) == 0) {
_disco_autoping_warning_message(features);
}
}