diff options
author | S7evinK <2353100+S7evinK@users.noreply.github.com> | 2022-03-07 10:37:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 10:37:04 +0100 |
commit | 9fbaa1194bb3d7e9f4dfff09461528b846d26a6e (patch) | |
tree | 42b6beb39024ff9666c84c2e4ad5e3abf4bec35b /clientapi/jsonerror/jsonerror.go | |
parent | 86d4eef9f10abd944bf689298cc6f9e915b940c7 (diff) |
Add canonical alias support (#2236)
* Add canonical support
* Add test
* Check that the send event is actually an m.room.canonical_alias
Check that we got an event from the database
* Update to get correct required events
* Add flakey test to blacklist
Diffstat (limited to 'clientapi/jsonerror/jsonerror.go')
-rw-r--r-- | clientapi/jsonerror/jsonerror.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clientapi/jsonerror/jsonerror.go b/clientapi/jsonerror/jsonerror.go index 97c59703..1fc1c0c0 100644 --- a/clientapi/jsonerror/jsonerror.go +++ b/clientapi/jsonerror/jsonerror.go @@ -58,6 +58,11 @@ func BadJSON(msg string) *MatrixError { return &MatrixError{"M_BAD_JSON", msg} } +// BadAlias is an error when the client supplies a bad alias. +func BadAlias(msg string) *MatrixError { + return &MatrixError{"M_BAD_ALIAS", msg} +} + // NotJSON is an error when the client supplies something that is not JSON // to a JSON endpoint. func NotJSON(msg string) *MatrixError { |