diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-03-17 15:12:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 15:12:01 +0000 |
commit | a66c701b29255a5cb7ec68b970948fb77f1f31af (patch) | |
tree | 799a8b973b820741beb52ec1c597ba1c716b519a /clientapi/jsonerror | |
parent | aebf347a79102597a359dcd59bb45593c8352780 (diff) |
Add room version to room create request, persist in storage (#915)
* Add room version into createRoomReq
* Extract room version from m.room.create event when persisting
* Reduce cyclomatic complexity
* Update whitelist, gomatrixserverlib, tweaks to roomserver
* Update sytest-whitelist again
Diffstat (limited to 'clientapi/jsonerror')
-rw-r--r-- | clientapi/jsonerror/jsonerror.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clientapi/jsonerror/jsonerror.go b/clientapi/jsonerror/jsonerror.go index 8df1fead..735de5be 100644 --- a/clientapi/jsonerror/jsonerror.go +++ b/clientapi/jsonerror/jsonerror.go @@ -124,6 +124,12 @@ func GuestAccessForbidden(msg string) *MatrixError { return &MatrixError{"M_GUEST_ACCESS_FORBIDDEN", msg} } +// UnsupportedRoomVersion is an error which is returned when the client +// requests a room with a version that is unsupported. +func UnsupportedRoomVersion(msg string) *MatrixError { + return &MatrixError{"M_UNSUPPORTED_ROOM_VERSION", msg} +} + // LimitExceededError is a rate-limiting error. type LimitExceededError struct { MatrixError |