Prune server names

This commit is contained in:
Neil Alexander 2021-11-15 16:11:09 +00:00
parent fcf21da988
commit 9d7ffe6fce
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {