aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/capabilities.go
diff options
context:
space:
mode:
authorbn4t <17193640+bn4t@users.noreply.github.com>2020-09-29 09:06:59 +0000
committerGitHub <noreply@github.com>2020-09-29 10:06:59 +0100
commitda89f2bd1fbc7738d5f56ac1e92d34fc797d6092 (patch)
tree79887bcc2f0150481bcb2733b53f279949e53481 /clientapi/routing/capabilities.go
parentce318f53bc99d5fb4014d4cca7408c113a89d2ef (diff)
Finish implementing the capabilities endpoint (#1449)
Closes #1310 Signed-off-by: Benjamin Nater <me@bn4t.me>
Diffstat (limited to 'clientapi/routing/capabilities.go')
-rw-r--r--clientapi/routing/capabilities.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/clientapi/routing/capabilities.go b/clientapi/routing/capabilities.go
index 199b1524..72668fa5 100644
--- a/clientapi/routing/capabilities.go
+++ b/clientapi/routing/capabilities.go
@@ -23,8 +23,8 @@ import (
"github.com/matrix-org/util"
)
-// SendMembership implements PUT /rooms/{roomID}/(join|kick|ban|unban|leave|invite)
-// by building a m.room.member event then sending it to the room server
+// GetCapabilities returns information about the server's supported feature set
+// and other relevant capabilities to an authenticated user.
func GetCapabilities(
req *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI,
) util.JSONResponse {
@@ -41,6 +41,9 @@ func GetCapabilities(
response := map[string]interface{}{
"capabilities": map[string]interface{}{
+ "m.change_password": map[string]bool{
+ "enabled": true,
+ },
"m.room_versions": roomVersionsQueryRes,
},
}