refactor: Update sdk

This commit is contained in:
Christian Pauly 2020-12-11 10:27:38 +01:00
commit 11c2a8bb26
8 changed files with 58 additions and 75 deletions

View file

@ -123,11 +123,14 @@ class _SettingsState extends State<Settings> {
);
if (input == null) return;
await SimpleDialogs(context).tryRequestWithLoadingDialog(
Matrix.of(context).client.deactivateAccount(auth: {
'type': 'm.login.password',
'user': Matrix.of(context).client.userID,
'password': input.single,
}),
Matrix.of(context).client.deactivateAccount(
auth: AuthenticationPassword(
password: input.single,
user: Matrix.of(context).client.userID,
identifier: AuthenticationUserIdentifier(
user: Matrix.of(context).client.userID),
),
),
);
}