Implement archived rooms (include_leave filter on /sync)

Fix https://github.com/matrix-org/dendrite/issues/1323
This commit is contained in:
Eric Eastwood 2020-12-22 22:31:01 -06:00
parent e3ce6a924f
commit 82afb32464
6 changed files with 24 additions and 7 deletions

View file

@ -65,6 +65,7 @@ type filterResponse struct {
FilterID string `json:"filter_id"`
}
// TODO: asdf
//PutFilter implements POST /_matrix/client/r0/user/{userId}/filter
func PutFilter(
req *http.Request, device *api.Device, syncDB storage.Database, userID string,

View file

@ -42,6 +42,7 @@ func Setup(
r0mux := csMux.PathPrefix("/r0").Subrouter()
// TODO: Add AS support for all handlers below.
// asdf
r0mux.Handle("/sync", httputil.MakeAuthAPI("sync", userAPI, func(req *http.Request, device *userapi.Device) util.JSONResponse {
return srp.OnIncomingSyncRequest(req, device)
})).Methods(http.MethodGet, http.MethodOptions)