mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-08-25 16:59:46 +00:00
fix: Only increment mindepth on state events
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user