From bdff48c7656eae76bc9b8d73fed5cd61a8f981bd Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Sat, 20 Jun 2026 12:47:19 +0000 Subject: [PATCH] fix(disco): avoid autoping warning on disco#info responses from users 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 --- src/xmpp/iq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 67d7ddb8..5ef64c19 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -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);