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) {
|
) (res gomatrixserverlib.MakeJoinResponse, err error) {
|
||||||
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
ires, err := a.federation.MakeJoin(ctx, origin, s, roomID, userID)
|
||||||
return a.federation.MakeJoin(ctx, origin, s, roomID, userID)
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &fclient.RespMakeJoin{}, err
|
return &fclient.RespMakeJoin{}, err
|
||||||
}
|
}
|
||||||
r := ires.(fclient.RespMakeJoin)
|
return &ires, nil
|
||||||
return &r, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *FederationInternalAPI) SendJoin(
|
func (a *FederationInternalAPI) SendJoin(
|
||||||
|
|
@ -34,14 +31,11 @@ func (a *FederationInternalAPI) SendJoin(
|
||||||
) (res gomatrixserverlib.SendJoinResponse, err error) {
|
) (res gomatrixserverlib.SendJoinResponse, err error) {
|
||||||
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
ires, err := a.doRequestIfNotBlacklisted(s, func() (interface{}, error) {
|
ires, err := a.federation.SendJoin(ctx, origin, s, event)
|
||||||
return a.federation.SendJoin(ctx, origin, s, event)
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &fclient.RespSendJoin{}, err
|
return &fclient.RespSendJoin{}, err
|
||||||
}
|
}
|
||||||
r := ires.(fclient.RespSendJoin)
|
return &ires, nil
|
||||||
return &r, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *FederationInternalAPI) GetEventAuth(
|
func (a *FederationInternalAPI) GetEventAuth(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue