fix: enable account deletion (#1943)
This commit is contained in:
parent
940d8814b7
commit
2140bbf0bb
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,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,
|
||||
|
|
@ -95,7 +95,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