mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -06:00
Don't check blacklist when attempting federated join
This commit is contained in:
parent
174a777818
commit
d3f8ab1d28
|
|
@ -19,14 +19,11 @@ func (a *FederationInternalAPI) MakeJoin(
|
|||
) (res gomatrixserverlib.MakeJoinResponse, err error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
||||
defer cancel()
|
||||
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
||||
return a.federation.MakeJoin(ctx, origin, s, roomID, userID)
|
||||
})
|
||||
ires, err := a.federation.MakeJoin(ctx, origin, s, roomID, userID)
|
||||
if err != nil {
|
||||
return &fclient.RespMakeJoin{}, err
|
||||
}
|
||||
r := ires.(fclient.RespMakeJoin)
|
||||
return &r, nil
|
||||
return &ires, nil
|
||||
}
|
||||
|
||||
func (a *FederationInternalAPI) SendJoin(
|
||||
|
|
@ -34,14 +31,11 @@ func (a *FederationInternalAPI) SendJoin(
|
|||
) (res gomatrixserverlib.SendJoinResponse, err error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
||||
defer cancel()
|
||||
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
||||
return a.federation.SendJoin(ctx, origin, s, event)
|
||||
})
|
||||
ires, err := a.federation.SendJoin(ctx, origin, s, event)
|
||||
if err != nil {
|
||||
return &fclient.RespSendJoin{}, err
|
||||
}
|
||||
r := ires.(fclient.RespSendJoin)
|
||||
return &r, nil
|
||||
return &ires, nil
|
||||
}
|
||||
|
||||
func (a *FederationInternalAPI) GetEventAuth(
|
||||
|
|
|
|||
Loading…
Reference in a new issue