diff options
author | Kevin Liu <mail@nivekuil.com> | 2021-08-18 04:41:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 12:41:30 +0100 |
commit | fe5050c0a5b1ef3dddde294d64ab24d8ba26e53f (patch) | |
tree | c95333a1e56e6117ad641e258a309739a5afb7ea /clientapi/jsonerror | |
parent | 614e67280defda4a9156f620f2751e3ef136da81 (diff) |
Add and use M_ROOM_IN_USE (#1972)
Signed-off-by: nivekuil <mail@nivekuil.com>
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
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 7accde5f..caa216e6 100644 --- a/clientapi/jsonerror/jsonerror.go +++ b/clientapi/jsonerror/jsonerror.go @@ -111,6 +111,12 @@ func UserInUse(msg string) *MatrixError { return &MatrixError{"M_USER_IN_USE", msg} } +// RoomInUse is an error returned when the client tries to make a room +// that already exists +func RoomInUse(msg string) *MatrixError { + return &MatrixError{"M_ROOM_IN_USE", msg} +} + // ASExclusive is an error returned when an application service tries to // register an username that is outside of its registered namespace, or if a // user attempts to register a username or room alias within an exclusive |