File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -189,23 +189,20 @@ async def check_state_independent_auth_rules(
189
189
# 2. Reject if event has auth_events that: ...
190
190
auth_events : MutableMapping [str , "EventBase" ] = {}
191
191
if batched_auth_events :
192
+ auth_events = cast (MutableMapping [str , "EventBase" ], batched_auth_events )
192
193
needed_auth_event_ids = [
193
194
event_id
194
195
for event_id in event .auth_event_ids ()
195
196
if event_id not in batched_auth_events
196
197
]
197
-
198
- needed_auth_events : MutableMapping [str , "EventBase" ] = {}
199
-
200
198
if needed_auth_event_ids :
201
- needed_auth_events = await store .get_events (
202
- needed_auth_event_ids ,
203
- redact_behaviour = EventRedactBehaviour .as_is ,
204
- allow_rejected = True ,
199
+ auth_events .update (
200
+ await store .get_events (
201
+ needed_auth_event_ids ,
202
+ redact_behaviour = EventRedactBehaviour .as_is ,
203
+ allow_rejected = True ,
204
+ )
205
205
)
206
-
207
- auth_events = cast (MutableMapping [str , "EventBase" ], batched_auth_events )
208
- auth_events .update (needed_auth_events )
209
206
else :
210
207
auth_events = await store .get_events (
211
208
event .auth_event_ids (),
You can’t perform that action at this time.
0 commit comments