remove the config check for thread list because why not

This commit is contained in:
qwqtoday 2024-07-30 16:54:29 +08:00
parent 15aaac5983
commit ad721d93b0

View file

@ -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
} }