From 178ad2e9b32d2050cf09ccbe3916e196f661eb16 Mon Sep 17 00:00:00 2001 From: Sumit Kumar Singh Date: Wed, 13 Jan 2021 21:31:56 +0530 Subject: [PATCH] Mention unstable features in /_matrix/client/versions --- clientapi/routing/routing.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index 8dbfc551d..61854a607 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -68,7 +68,8 @@ func Setup( Code: http.StatusOK, JSON: struct { Versions []string `json:"versions"` - }{[]string{ + UnstableFeatures map[string]bool `json:"unstable_features"` + }{Versions: []string{ "r0.0.1", "r0.1.0", "r0.2.0", @@ -76,6 +77,8 @@ func Setup( "r0.4.0", "r0.5.0", "r0.6.1", + },UnstableFeatures: map[string]bool{ + "org.matrix.msc2836": true, }}, } }),