From ae02c5e6aef5c97d00afe913b3e50258640ed8a0 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 15 Nov 2021 15:40:38 +0000 Subject: [PATCH] Revert "Error if no servers available to join via" This reverts commit 2c543ac03444452e42e9285bfa39906ba46404fc. --- federationsender/internal/perform.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/federationsender/internal/perform.go b/federationsender/internal/perform.go index 210ca529..ce21d0ed 100644 --- a/federationsender/internal/perform.go +++ b/federationsender/internal/perform.go @@ -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