upstream: feat: Display incoming reports (XEP-0377) (93918a20d)

This commit is contained in:
2026-03-31 19:57:34 +03:00
parent c03d3d499b
commit 9538816bef
3 changed files with 68 additions and 0 deletions

View File

@@ -234,6 +234,11 @@ _iq_handler(xmpp_conn_t* const conn, xmpp_stanza_t* const stanza, void* const us
blocked_set_handler(stanza);
}
xmpp_stanza_t* reporting = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_REPORTING);
if (reporting && (g_strcmp0(type, STANZA_TYPE_SET) == 0)) {
reporting_set_handler(stanza);
}
const char* id = xmpp_stanza_get_id(stanza);
if (id) {
ProfIqHandler* handler = g_hash_table_lookup(id_handlers, id);