upstream: fix: Ignore self-presence for untracked MUC rooms (9fb45b543)

This commit is contained in:
2026-03-31 19:51:20 +03:00
parent a8716bf8a7
commit f6b2347811

View File

@@ -817,7 +817,12 @@ _muc_user_self_handler(xmpp_stanza_t* stanza)
affiliation = xmpp_stanza_get_attribute(item, "affiliation");
}
}
sv_ev_muc_self_online(room, nick, config_required, role, affiliation, actor, reason, jid, show_str, status_str);
if (muc_active(room)) {
sv_ev_muc_self_online(room, nick, config_required, role, affiliation, actor, reason, jid, show_str, status_str);
} else {
log_debug("presence: self-presence received for untracked room: %s", room);
}
}
}