aboutsummaryrefslogtreecommitdiff
path: root/clientapi
AgeCommit message (Collapse)Author
2019-08-02Implements room tagging. (#694)Sumukha Pk
2019-07-24Implement room creation content (#754)Alex Chen
Fixes #660. Signed-off-by: Alex Chen minecnly@gmail.com
2019-07-25Store & retrieve filters as structs rather than []byte (#436)Thibaut CHARLES
Manipulate filters as gomatrix.Filter structures, instead of their []byte JSON representation. This lays ground work for using filters in dendrite for /sync requests.
2019-07-22Correctly create new device when device_id is passed to /login (#753)Andrew Morgan
Fixes https://github.com/matrix-org/dendrite/issues/401 Currently when passing a `device_id` parameter to `/login`, which is [supposed](https://matrix.org/docs/spec/client_server/unstable#post-matrix-client-r0-login) to return a device with that ID set, it instead just generates a random `device_id` and hands that back to you. The code was already there to do this correctly, it looks like it had just been broken during some change. Hopefully sytest will prevent this from becoming broken again.
2019-07-18Remove unnecessary http method checks (#747)Andrew Morgan
Closes #523 There were a lot of unnecessary checks for HTTP methods of requests. gorilla/mux makes sure that these methods will only be called if certain HTTP methods are used, thus there's no reason to have these extra checks.
2019-07-17Prevent duplicate entries in the completed registration flows (#741)Andrew Morgan
2019-07-12Lots of small typo fixes (#737)Andrew Morgan
2019-07-12Fix #661 appservice can't set aliases in its own namespace (#731)Alex Chen
Fixes #661.
2019-07-12Fix response to /rooms/{roomId}/join v2 (#734)Andrew Morgan
Continuation of #684 but merged-forward. Also did a little code cleanup and added a new, passing test to the testfile.
2019-07-09Add back missing returns for httputil.LogThenError calls (#730)Alex Chen
Signed-off-by: Alex Chen <minecnly@gmail.com>
2019-07-09Fix http responses in validateRecaptcha (#431)Anant Prakash
fixes #421
2019-07-03Encode URLs properly (#728)Andrew Morgan
We were escaping the URL before performing any pattern matching on it. This meant that if you sent data that URLdecoded to a "/", it would count as a "/" in the URL, potentially causing a 404. This was causing some flaky tests with some randomly-generated query parameters. Now, we keep URLs encoded while doing the pattern matching, and only afterwards do we URL decode each query parameter individually before passing them to their respective handler functions. github.com/gorilla/mux was also updated to v1.7.3 to fix a bug with URL encoding and subrouters.
2019-06-19Fix pipeline, emoji and syntax (#713)Andrew Morgan
Fixes #697 Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
2019-05-21use go module for dependencies (#594)ruben