Commit graph

10 commits

Author SHA1 Message Date
Neil Alexander 92ea4e5a80
More sequence tweaks 2021-04-21 10:23:04 +01:00
Neil Alexander 121f197625
Break out queries a bit 2021-04-21 10:19:20 +01:00
Neil Alexander e5b4e75357
Use Query 2021-04-21 10:17:21 +01:00
Neil Alexander beef1e3131
Fix boundary queries 2021-04-21 10:05:45 +01:00
Neil Alexander 0f849288e4
Fix boundary queries 2021-04-21 10:04:42 +01:00
Neil Alexander 8859e0e86b
Set a boundary for old to new block/snapshot IDs so we don't rewrite them more than once accidentally 2021-04-21 09:49:21 +01:00
Neil Alexander 5475f8a7d9
Update migration names 2021-04-20 16:28:47 +01:00
Neil Alexander dc056f7e40
Refactor droomserver database setup for migrations 2021-04-20 15:43:03 +01:00
Neil Alexander c617d7c335
Hash-deduplicated state storage (and migrations) for PostgreSQL and SQLite 2021-04-20 14:56:16 +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