File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,7 @@ func CheckSendJoinResponse(
338
338
}
339
339
340
340
eventsByID := map [string ]PDU {}
341
- authEventProvider , err := NewAuthEvents (nil )
342
- if err != nil {
343
- return nil , err
344
- }
341
+ authEventProvider , _ := NewAuthEvents (nil )
345
342
346
343
// Since checkAllowedByAuthEvents needs to be able to look up any of the
347
344
// auth events by ID only, we will build a map which contains references
Original file line number Diff line number Diff line change @@ -444,10 +444,12 @@ func (r *stateResolverV2) getFirstPowerLevelMainlineEvent(event PDU) (
444
444
func (r * stateResolverV2 ) authAndApplyEvents (events ... PDU ) {
445
445
addFromAuthEventsIfNotRejected := func (event PDU , eventType , stateKey string ) {
446
446
for _ , authEventID := range event .AuthEventIDs () {
447
- if _ , ok := r .isRejectedCache [authEventID ]; ! ok {
448
- r .isRejectedCache [authEventID ] = r .isRejectedFn (authEventID )
447
+ rejected , ok := r .isRejectedCache [authEventID ]
448
+ if ! ok {
449
+ rejected = r .isRejectedFn (authEventID )
450
+ r .isRejectedCache [authEventID ] = rejected
449
451
}
450
- if rejected := r . isRejectedCache [ authEventID ]; rejected {
452
+ if rejected {
451
453
continue
452
454
}
453
455
authEv , ok := r .authEventMap [authEventID ]
You can’t perform that action at this time.
0 commit comments