mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 10:42:35 +01:00
fix: Password success banner if not succeeded
This commit is contained in:
parent
42d9bf5fee
commit
51505631b5
@ -82,15 +82,17 @@ class _SettingsState extends State<Settings> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
if (input == null) return;
|
if (input == null) return;
|
||||||
await showFutureLoadingDialog(
|
final success = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => Matrix.of(context)
|
future: () => Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
.changePassword(input.last, oldPassword: input.first),
|
.changePassword(input.last, oldPassword: input.first),
|
||||||
);
|
);
|
||||||
await FlushbarHelper.createSuccess(
|
if (success.error == null) {
|
||||||
message: L10n.of(context).passwordHasBeenChanged)
|
await FlushbarHelper.createSuccess(
|
||||||
.show(context);
|
message: L10n.of(context).passwordHasBeenChanged)
|
||||||
|
.show(context);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _deleteAccountAction(BuildContext context) async {
|
void _deleteAccountAction(BuildContext context) async {
|
||||||
|
Loading…
Reference in New Issue
Block a user