fix: update condition in account deletion function to allow deletion to go through
This commit is contained in:
parent
954607f339
commit
eb83cd90eb
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ class SettingsSecurityController extends State<SettingsSecurity> {
|
|||
return;
|
||||
}
|
||||
final supposedMxid = Matrix.of(context).client.userID!;
|
||||
final mxids = await showTextInputDialog(
|
||||
final mxid = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context).confirmMatrixId,
|
||||
|
|
@ -72,7 +72,7 @@ class SettingsSecurityController extends State<SettingsSecurity> {
|
|||
okLabel: L10n.of(context).delete,
|
||||
cancelLabel: L10n.of(context).cancel,
|
||||
);
|
||||
if (mxids == null || mxids.length != 1 || mxids != supposedMxid) {
|
||||
if (mxid == null || mxid.isEmpty || mxid != supposedMxid) {
|
||||
return;
|
||||
}
|
||||
final input = await showTextInputDialog(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue