Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix M_USER_ACCOUNT_SUSPENDED error code for spec compliance (#12923)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored May 31, 2022
1 parent bcfdfeb commit d0e40df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.d/12845.feature
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Support the new error code "M_ORG_MATRIX_MSC3823_USER_ACCOUNT_SUSPENDED" from [MSC3823](https://github.com/matrix-org/matrix-spec-proposals/pull/3823).
Support the new error code "ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED" from [MSC3823](https://github.com/matrix-org/matrix-spec-proposals/pull/3823).
1 change: 1 addition & 0 deletions changelog.d/12923.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support the new error code "ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED" from [MSC3823](https://github.com/matrix-org/matrix-spec-proposals/pull/3823).
2 changes: 1 addition & 1 deletion synapse/api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Codes(str, Enum):
# By opposition to `USER_DEACTIVATED`, this is a reversible measure
# that can possibly be appealed and reverted.
# Part of MSC3823.
USER_ACCOUNT_SUSPENDED = "M_ORG_MATRIX_MSC3823_USER_ACCOUNT_SUSPENDED"
USER_ACCOUNT_SUSPENDED = "ORG.MATRIX.MSC3823.USER_ACCOUNT_SUSPENDED"

BAD_ALIAS = "M_BAD_ALIAS"
# For restricted join rules.
Expand Down

0 comments on commit d0e40df

Please sign in to comment.