0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-14 19:33:50 +01:00
dendrite/roomserver/internal
David Spenler 2defc4249d
Added /upgrade endpoint (#2307)
* Added /upgrade endpoint

* fix

* Fix lints

* More lint lifex

* Move room upgrading to the roomserver

* Remove extraneous arg

* Fix HTTP API for `PerformUpgrade`

* Reduce number of API calls in `generateInitialEvents`, preserve membership fields

* Refactor `generateInitialEvents` to preserve old state events for all but the essential room setup events

* Handle ban events in the state transfer

* Refactor and comment `createTemporaryPowerLevels`

* Only send two power levels if we needed to override the levels, preserve miscellaneous fields in the create event

* Fix copyrights

* Review comments @S7evinK

* Update sytest whitelist

* Specify empty state keys, use `EventLevel`, remove unnecessary check on state copy

* Add comment to `restrictOldRoomPowerLevels`

* Ensure canonical aliases exist before clearing

* Copy invites as well as bans

* Fix return error on `m.room.tombstone` handling in client API

* Relax checks for well-formedness of join rules, membership event etc

Co-authored-by: Alex Kursell <alex@awk.run>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Co-authored-by: kegsay <kegan@matrix.org>
2022-04-05 10:04:08 +01:00
..
helpers Various bug fixes and tweaks around invites and membership 2022-03-17 17:05:21 +00:00
input Per-room consumers (#2293) 2022-03-23 10:20:18 +00:00
perform Added /upgrade endpoint (#2307) 2022-04-05 10:04:08 +01:00
query Fix GET /directory/list/room/{roomID} (#2262) 2022-03-09 10:42:24 +00:00
alias.go Fix lint errors 2022-03-24 10:03:22 +00:00
api.go Added /upgrade endpoint (#2307) 2022-04-05 10:04:08 +01:00