Fix unit tests, add unstable feature entry

This commit is contained in:
Neil Alexander 2021-07-28 12:59:17 +01:00
parent a5bb2afbb5
commit 7913593d9b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 9 additions and 1 deletions

View file

@ -25,6 +25,8 @@ import (
)
func UploadCrossSigningDeviceKeys(req *http.Request, keyserverAPI api.KeyInternalAPI, device *userapi.Device) util.JSONResponse {
// TODO: User-interactive auth
uploadReq := &api.PerformUploadDeviceKeysRequest{}
uploadRes := &api.PerformUploadDeviceKeysResponse{}

View file

@ -64,7 +64,9 @@ func Setup(
rateLimits := newRateLimits(&cfg.RateLimiting)
userInteractiveAuth := auth.NewUserInteractive(accountDB.GetAccountByPassword, cfg)
unstableFeatures := make(map[string]bool)
unstableFeatures := map[string]bool{
"org.matrix.e2e_cross_signing": true,
}
for _, msc := range cfg.MSCs.MSCs {
unstableFeatures["org.matrix."+msc] = true
}