aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/query
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-04-03 21:42:46 +0200
committerGitHub <noreply@github.com>2023-04-03 21:42:46 +0200
commit682a7d0a66ce0dfd34cff2899daa6f16fdc7ebae (patch)
tree26329d399bb799aa6843521e65331167cf3e60ba /roomserver/internal/query
parent560ba4627272b1ce5afc1f382871dd1967c836bc (diff)
Add tests for `/turnServer`, `/capabilities` and `/3pid/` (#3038)
Threepid seems to be pretty out of date, several missing endpoints. Should also fix #3037, where we were still listening on the `/unstable` prefix, while Element Web uses `/r0`
Diffstat (limited to 'roomserver/internal/query')
-rw-r--r--roomserver/internal/query/query.go21
1 files changed, 1 insertions, 20 deletions
diff --git a/roomserver/internal/query/query.go b/roomserver/internal/query/query.go
index c5b74422..ce17580a 100644
--- a/roomserver/internal/query/query.go
+++ b/roomserver/internal/query/query.go
@@ -35,7 +35,6 @@ import (
"github.com/matrix-org/dendrite/roomserver/state"
"github.com/matrix-org/dendrite/roomserver/storage"
"github.com/matrix-org/dendrite/roomserver/types"
- "github.com/matrix-org/dendrite/roomserver/version"
)
type Queryer struct {
@@ -694,25 +693,7 @@ func GetAuthChain(
return authEvents, nil
}
-// QueryRoomVersionCapabilities implements api.RoomserverInternalAPI
-func (r *Queryer) QueryRoomVersionCapabilities(
- ctx context.Context,
- request *api.QueryRoomVersionCapabilitiesRequest,
- response *api.QueryRoomVersionCapabilitiesResponse,
-) error {
- response.DefaultRoomVersion = version.DefaultRoomVersion()
- response.AvailableRoomVersions = make(map[gomatrixserverlib.RoomVersion]string)
- for v, desc := range version.SupportedRoomVersions() {
- if desc.Stable {
- response.AvailableRoomVersions[v] = "stable"
- } else {
- response.AvailableRoomVersions[v] = "unstable"
- }
- }
- return nil
-}
-
-// QueryRoomVersionCapabilities implements api.RoomserverInternalAPI
+// QueryRoomVersionForRoom implements api.RoomserverInternalAPI
func (r *Queryer) QueryRoomVersionForRoom(
ctx context.Context,
request *api.QueryRoomVersionForRoomRequest,