client-api: Add error kinds encountered for restricted rooms
According to MSC3083
This commit is contained in:
parent
251c1c85d2
commit
cad5e81c68
@ -9,6 +9,7 @@ Breaking changes:
|
|||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
* Add unstable support for refresh tokens (MSC2918)
|
* Add unstable support for refresh tokens (MSC2918)
|
||||||
|
* Add `ErrorKind::{UnableToAuthorizeJoin, UnableToGrantJoin}` encountered for restricted rooms
|
||||||
|
|
||||||
# 0.14.1
|
# 0.14.1
|
||||||
|
|
||||||
|
@ -141,6 +141,12 @@ pub enum ErrorKind {
|
|||||||
/// M_WEAK_PASSWORD
|
/// M_WEAK_PASSWORD
|
||||||
WeakPassword,
|
WeakPassword,
|
||||||
|
|
||||||
|
/// M_UNABLE_TO_AUTHORISE_JOIN
|
||||||
|
UnableToAuthorizeJoin,
|
||||||
|
|
||||||
|
/// M_UNABLE_TO_GRANT_JOIN
|
||||||
|
UnableToGrantJoin,
|
||||||
|
|
||||||
/// FI.MAU.MSC2246_NOT_YET_UPLOADED
|
/// FI.MAU.MSC2246_NOT_YET_UPLOADED
|
||||||
#[cfg(feature = "unstable-msc2246")]
|
#[cfg(feature = "unstable-msc2246")]
|
||||||
NotYetUploaded,
|
NotYetUploaded,
|
||||||
@ -193,6 +199,8 @@ impl AsRef<str> for ErrorKind {
|
|||||||
Self::ResourceLimitExceeded { .. } => "M_RESOURCE_LIMIT_EXCEEDED",
|
Self::ResourceLimitExceeded { .. } => "M_RESOURCE_LIMIT_EXCEEDED",
|
||||||
Self::CannotLeaveServerNoticeRoom => "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM",
|
Self::CannotLeaveServerNoticeRoom => "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM",
|
||||||
Self::WeakPassword => "M_WEAK_PASSWORD",
|
Self::WeakPassword => "M_WEAK_PASSWORD",
|
||||||
|
Self::UnableToAuthorizeJoin => "M_UNABLE_TO_AUTHORISE_JOIN",
|
||||||
|
Self::UnableToGrantJoin => "M_UNABLE_TO_GRANT_JOIN",
|
||||||
#[cfg(feature = "unstable-msc2246")]
|
#[cfg(feature = "unstable-msc2246")]
|
||||||
Self::NotYetUploaded => "FI.MAU.MSC2246_NOT_YET_UPLOADED",
|
Self::NotYetUploaded => "FI.MAU.MSC2246_NOT_YET_UPLOADED",
|
||||||
#[cfg(feature = "unstable-msc2246")]
|
#[cfg(feature = "unstable-msc2246")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user