Don't try to federated-join via ourselves
MODIFY
federationapi/internal/perform.go
federationapi/internal/perform.go
@@ -75,7 +75,7 @@ func (r *FederationInternalAPI) PerformJoin(
seenSet := make(map[gomatrixserverlib.ServerName]bool)
var uniqueList []gomatrixserverlib.ServerName
for _, srv := range request.ServerNames {
- if seenSet[srv] {
+ if seenSet[srv] || srv == r.cfg.Matrix.ServerName {
continue
}
seenSet[srv] = true

Don't try to federated-join via ourselves (#2383)