Merge pull request #2097 from profanity-im/fix/731-pseudo-join

fix: Ignore self-presence for untracked MUC rooms
This commit is contained in:
Michael Vetter
2026-02-28 11:32:24 +01:00
committed by GitHub

View File

@@ -813,7 +813,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);
}
}
}