|
|
@ -87,14 +87,22 @@ class SettingsAccountController extends State<SettingsAccount> {
|
|
|
|
OkCancelResult.cancel) {
|
|
|
|
OkCancelResult.cancel) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (await showOkCancelAlertDialog(
|
|
|
|
final supposedMxid = Matrix.of(context).client.userID!;
|
|
|
|
useRootNavigator: false,
|
|
|
|
final mxids = await showTextInputDialog(
|
|
|
|
context: context,
|
|
|
|
useRootNavigator: false,
|
|
|
|
title: L10n.of(context)!.areYouSure,
|
|
|
|
context: context,
|
|
|
|
okLabel: L10n.of(context)!.yes,
|
|
|
|
title: L10n.of(context)!.confirmMatrixId,
|
|
|
|
cancelLabel: L10n.of(context)!.cancel,
|
|
|
|
textFields: [
|
|
|
|
) ==
|
|
|
|
DialogTextField(
|
|
|
|
OkCancelResult.cancel) {
|
|
|
|
validator: (text) => text == supposedMxid
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: L10n.of(context)!.supposedMxid(supposedMxid),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
okLabel: L10n.of(context)!.delete,
|
|
|
|
|
|
|
|
cancelLabel: L10n.of(context)!.cancel,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
if (mxids == null || mxids.length != 1 || mxids.single != supposedMxid) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final input = await showTextInputDialog(
|
|
|
|
final input = await showTextInputDialog(
|
|
|
|