0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-26 16:28:19 +02:00
dendrite/clientapi/jsonerror
S7evinK 002429c9e2
Implement server notices (#2180)
* Add server_notices config

* Disallow rejecting "server notice" invites

* Update config

* Slightly refactor sendEvent and CreateRoom so it can be reused

* Implement unspecced server notices

* Validate the request

* Set the user api when starting

* Rename function/variables

* Update comments

* Update config

* Set the avatar on account creation

* Update test

* Only create the account when starting
Only add routes if sever notices are enabled

* Use reserver username
Check that we actually got roomData

* Add check for admin account
Enable server notices for CI
Return same values as Synapse

* Add custom error for rejecting server notice invite

* Move building an invite to it's own function, for reusability

* Don't create new rooms, use the existing one (follow Synapse behavior)

Co-authored-by: kegsay <kegan@matrix.org>
2022-02-18 16:05:03 +01:00
..
jsonerror.go Implement server notices (#2180) 2022-02-18 16:05:03 +01:00
jsonerror_test.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00