fix: Only increment mindepth on state events

This commit is contained in:
timedout
2026-06-27 19:49:33 +01:00
committed by Jade Ellis
parent b63eaa81d4
commit d2c183baeb
@@ -388,7 +388,7 @@ pub(super) async fn upgrade_outlier_to_timeline_pdu<Pdu>(
// Event has passed all auth/stateres checks
drop(state_lock);
if incoming_pdu.depth > min_depth {
if incoming_pdu.depth > min_depth && incoming_pdu.state_key().is_some() {
self.services
.metadata
.set_mindepth(room_id, incoming_pdu.depth.into());