diff --git a/CHANGELOG.md b/CHANGELOG.md index 10fd56ec56..3c846612ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Changes in [1.5.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v1.5.1) (2019-08-05) +=================================================================================================== +[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v1.5.0-rc.1...v1.5.1) + + * Let user know their account has been deactivated upon trying to login + [\#3281](https://github.com/matrix-org/matrix-react-sdk/pull/3281) + Changes in [1.5.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v1.5.0) (2019-08-05) =================================================================================================== [Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v1.5.0-rc.1...v1.5.0) diff --git a/package.json b/package.json index f4f768d7cb..43b5f39548 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-react-sdk", - "version": "1.5.0", + "version": "1.5.1", "description": "SDK for matrix.org using React", "author": "matrix.org", "repository": { diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index 27378447d5..31cb92d982 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -217,7 +217,9 @@ module.exports = React.createClass({ ); } else if (error.httpStatus === 401 || error.httpStatus === 403) { - if (SdkConfig.get()['disable_custom_urls']) { + if (error.errcode === 'M_USER_DEACTIVATED') { + errorText = _t('This account has been deactivated.'); + } else if (SdkConfig.get()['disable_custom_urls']) { errorText = (