File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,7 @@ func CheckSendJoinResponse(
338338 }
339339
340340 eventsByID := map [string ]PDU {}
341- authEventProvider , err := NewAuthEvents (nil )
342- if err != nil {
343- return nil , err
344- }
341+ authEventProvider , _ := NewAuthEvents (nil )
345342
346343 // Since checkAllowedByAuthEvents needs to be able to look up any of the
347344 // 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) (
444444func (r * stateResolverV2 ) authAndApplyEvents (events ... PDU ) {
445445 addFromAuthEventsIfNotRejected := func (event PDU , eventType , stateKey string ) {
446446 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
449451 }
450- if rejected := r . isRejectedCache [ authEventID ]; rejected {
452+ if rejected {
451453 continue
452454 }
453455 authEv , ok := r .authEventMap [authEventID ]
You can’t perform that action at this time.
0 commit comments