fix(disco): avoid autoping warning on disco#info responses from users
Some checks failed
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Check coding style (pull_request) Successful in 29s
CI Code / Code Coverage (pull_request) Failing after 4m7s
CI Code / Linux (debian) (pull_request) Failing after 6m3s
CI Code / Linux (ubuntu) (pull_request) Failing after 6m7s
CI Code / Linux (arch) (pull_request) Failing after 7m53s

The autoping availability warning should only trigger for disco#info
responses from the XMPP server (no 'from' attribute), otherwise the
warning message is displayed excessive amount of times.

Refs #80
This commit is contained in:
2026-06-20 12:47:19 +00:00
parent 45b81cf2de
commit bdff48c765

View File

@@ -2430,7 +2430,10 @@ _disco_info_response_id_handler_onconnect(xmpp_stanza_t* const stanza, void* con
}
child = xmpp_stanza_get_next(child);
}
_disco_autoping_warning_message(features);
if (!from) {
_disco_autoping_warning_message(features);
}
}
connection_features_received(from);