1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Merge pull request #3211 from matrix-org/travis/send-proper-uia

Send the correct UIA alongside the wrong UIA for backwards comaptibility
This commit is contained in:
Travis Ralston
2019-07-12 08:14:01 -06:00
committed by GitHub
3 changed files with 24 additions and 2 deletions

View File

@@ -63,7 +63,13 @@ export default class DeactivateAccountDialog extends React.Component {
// for this endpoint. In reality it could be any UI auth.
const auth = {
type: 'm.login.password',
// TODO: Remove `user` once servers support proper UIA
// See https://github.com/vector-im/riot-web/issues/10312
user: MatrixClientPeg.get().credentials.userId,
identifier: {
type: "m.id.user",
user: MatrixClientPeg.get().credentials.userId,
},
password: this.state.password,
};
await MatrixClientPeg.get().deactivateAccount(auth, this.state.shouldErase);