mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-25 22:48:27 +00:00
Revert "Error if no servers available to join via"
This reverts commit 2c543ac034
.
This commit is contained in:
parent
2c543ac034
commit
ae02c5e6ae
1 changed files with 0 additions and 12 deletions
|
@ -83,18 +83,6 @@ func (r *FederationSenderInternalAPI) PerformJoin(
|
|||
}
|
||||
request.ServerNames = uniqueList
|
||||
|
||||
// If there are no servers to join via then, well, don't bother.
|
||||
if len(request.ServerNames) == 0 {
|
||||
response.LastError = &gomatrix.HTTPError{
|
||||
Code: 400,
|
||||
Message: `{
|
||||
"errcode": "M_MISSING_PARAM",
|
||||
"error": "No servers were supplied in the request."
|
||||
}`, // TODO: Why do none of our error types play nicely with each other?
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Try each server that we were provided until we land on one that
|
||||
// successfully completes the make-join send-join dance.
|
||||
var lastErr error
|
||||
|
|
Loading…
Reference in a new issue