fix: Don't panic on missing SSH in sliding sync

This commit is contained in:
Ginger
2026-05-26 09:05:06 -04:00
parent 7f21f0d6ab
commit 624bd3796a
+13 -9
View File
@@ -868,16 +868,20 @@ where
.ignore_err();
}
let (_, pdu_at_last_sync_end) = pdus_rev.next().await?;
let (count, pdu_at_last_sync_end) = pdus_rev.next().await?;
Some(
services
.rooms
.state_accessor
.pdu_shortstatehash(&pdu_at_last_sync_end.event_id)
.await
.expect("pdu should have a shortstatehash"),
)
if matches!(count, PduCount::Backfilled(_)) {
None
} else {
Some(
services
.rooms
.state_accessor
.pdu_shortstatehash(&pdu_at_last_sync_end.event_id)
.await
.expect("pdu should have a shortstatehash"),
)
}
}
.await;