From 9d7ffe6fce40c35464d28e5ea961bca44882e458 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 15 Nov 2021 16:11:09 +0000 Subject: [PATCH] Prune server names --- roomserver/internal/perform/perform_join.go | 1 + 1 file changed, 1 insertion(+) diff --git a/roomserver/internal/perform/perform_join.go b/roomserver/internal/perform/perform_join.go index 2e547432..95846a74 100644 --- a/roomserver/internal/perform/perform_join.go +++ b/roomserver/internal/perform/perform_join.go @@ -275,6 +275,7 @@ func (r *Joiner) performJoinRoomByID( } var serverName gomatrixserverlib.ServerName + req.ServerNames = req.ServerNames[:0] joinEvents: for userID, pl := range powerLevelsContent.Users { if pl <= powerLevelsContent.Invite {