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(); .ignore_err();
} }
let (_, pdu_at_last_sync_end) = pdus_rev.next().await?; let (count, pdu_at_last_sync_end) = pdus_rev.next().await?;
Some( if matches!(count, PduCount::Backfilled(_)) {
services None
.rooms } else {
.state_accessor Some(
.pdu_shortstatehash(&pdu_at_last_sync_end.event_id) services
.await .rooms
.expect("pdu should have a shortstatehash"), .state_accessor
) .pdu_shortstatehash(&pdu_at_last_sync_end.event_id)
.await
.expect("pdu should have a shortstatehash"),
)
}
} }
.await; .await;