fix: Only increment mindepth on state events

This commit is contained in:
timedout committed 2026-06-20 17:07:59 +01:00
1 parent e3ec1066c4
commit b9dca84acf
1 file changed
+1 -1
@@ -385,7 +385,7 @@ where
// 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());