mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-04 06:11:47 +00:00
fix(state-res): Skip rejected events in iterative auth checks
This commit is contained in:
1 parent
0d7fb27d0b
commit
51a9ddb27b
5 files changed
+110
-7
No files matched your search
@@ -109,12 +109,19 @@ impl super::Service {
|
||||
{
|
||||
let event_fetch = |event_id| self.event_fetch(event_id);
|
||||
let event_exists = |event_id| self.event_exists(event_id);
|
||||
let is_rejected = |event_id: OwnedEventId| async move {
|
||||
self.services
|
||||
.pdu_metadata
|
||||
.is_event_rejected(&event_id)
|
||||
.await
|
||||
};
|
||||
state_res::resolve(
|
||||
room_version_rules,
|
||||
state_sets,
|
||||
auth_chain_sets,
|
||||
&event_fetch,
|
||||
&event_exists,
|
||||
&is_rejected,
|
||||
)
|
||||
.map_err(|e| err!(error!("State resolution failed: {e:?}")))
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user