aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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