Don't include servername in error response

This commit is contained in:
Neil Alexander 2020-04-23 10:15:26 +01:00
parent 67b47d98bd
commit f9e2a021fb

View file

@ -52,7 +52,7 @@ func Invite(
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: jsonerror.UnsupportedRoomVersion(
fmt.Sprintf("Users of %q cannot join version %q rooms.", cfg.Matrix.ServerName, roomVersion),
fmt.Sprintf("Users of this server cannot join version %q rooms.", roomVersion),
),
}
}