mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
remove the config check for thread list because why not
This commit is contained in:
parent
15aaac5983
commit
ad721d93b0
|
|
@ -23,7 +23,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"slices"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -150,7 +149,6 @@ func Enable(
|
||||||
},
|
},
|
||||||
)).Methods(http.MethodPost, http.MethodOptions)
|
)).Methods(http.MethodPost, http.MethodOptions)
|
||||||
|
|
||||||
if slices.Contains(cfg.MSCs.MSCs, "MSC3856") {
|
|
||||||
routers.Client.Handle("/v1/rooms/{roomId}/threads", httputil.MakeAuthAPI(
|
routers.Client.Handle("/v1/rooms/{roomId}/threads", httputil.MakeAuthAPI(
|
||||||
"msc3856_thread_list", userAPI, func(req *http.Request, d *userapi.Device) util.JSONResponse {
|
"msc3856_thread_list", userAPI, func(req *http.Request, d *userapi.Device) util.JSONResponse {
|
||||||
vars, err := httputil.URLDecodeMapValues(mux.Vars(req))
|
vars, err := httputil.URLDecodeMapValues(mux.Vars(req))
|
||||||
|
|
@ -192,7 +190,6 @@ func Enable(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue