aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-04-27 12:23:55 +0100
committerGitHub <noreply@github.com>2022-04-27 12:23:55 +0100
commit54ff4cf690918886c7e7a59a65ccff970c3aa1fc (patch)
treeb9bafa60687d166205841f3fdf3662a0939d524e
parentdca4afd2f0871ed53109121dff17048e69cc4935 (diff)
Don't try to federated-join via ourselves (#2383)
-rw-r--r--federationapi/internal/perform.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/internal/perform.go b/federationapi/internal/perform.go
index 8cd94434..aac36cc7 100644
--- a/federationapi/internal/perform.go
+++ b/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