mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Don't panic on missing SSH in sliding sync
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user