Commit graph

6 commits

Author SHA1 Message Date
Neil Alexander
8e527b55e5
Tweaks 2021-04-16 16:44:26 +01:00
Neil Alexander
9f4ffe4c81
Use pq arrays 2021-04-16 16:41:43 +01:00
Neil Alexander
9048315ffe
Bit of output 2021-04-16 16:34:23 +01:00
Neil Alexander
97f2e3f94f
Wire in delta for Postgres 2021-04-16 16:27:14 +01:00
Neil Alexander
8d4d28fedc
Add experimental Postgres migration 2021-04-16 16:21:06 +01:00
S7evinK
eccd0d2c1b
Implement forgetting about rooms (#1572)
* Add basic storage methods

* Add internal api handler

* Add check for forgotten room

* Add /rooms/{roomID}/forget endpoint

* Add missing rsAPI method

* Remove unused parameters

* Add passing tests

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add missing file

* Add postgres migration

* Add sqlite migration

* Use Forgetter to forget room

* Remove empty line

* Update HTTP status codes

It looks like the spec calls for these to be 400, rather than 403: https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-rooms-roomid-forget

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-05 10:19:23 +00:00