File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
crates/matrix-synapse/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ const M_USER_IN_USE: &str = "M_USER_IN_USE";
23
23
/// Encountered when trying to register a user ID which is not valid.
24
24
/// — <https://spec.matrix.org/v1.10/client-server-api/#other-error-codes>
25
25
const M_INVALID_USERNAME : & str = "M_INVALID_USERNAME" ;
26
+ /// Encountered when trying to register a user ID reserved by an appservice.
27
+ /// — <https://spec.matrix.org/v1.10/client-server-api/#other-error-codes>
28
+ const M_EXCLUSIVE : & str = "M_EXCLUSIVE" ;
26
29
27
30
mod error;
28
31
@@ -241,7 +244,8 @@ impl HomeserverConnection for SynapseConnection {
241
244
242
245
Err ( err)
243
246
if err. errcode ( ) == Some ( M_INVALID_USERNAME )
244
- || err. errcode ( ) == Some ( M_USER_IN_USE ) =>
247
+ || err. errcode ( ) == Some ( M_USER_IN_USE )
248
+ || err. errcode ( ) == Some ( M_EXCLUSIVE ) =>
245
249
{
246
250
debug ! (
247
251
error = & err as & dyn std:: error:: Error ,
You can’t perform that action at this time.
0 commit comments