From b5bbad8d2c02acd48907ddee41e4c3bfbc3df525 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Sun, 21 Jun 2026 15:37:16 +0000 Subject: [PATCH] fix(xmpp): prevent autoping warning repetition on disco items 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. --- src/xmpp/iq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index c9e1f0bb..1351c64b 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -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); } }