mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:15:09 +00:00
fix: Reset bootstrap on bad ssss
This commit is contained in:
parent
e8fcc7abc2
commit
07aee5e6c1
1 changed files with 9 additions and 2 deletions
|
@ -116,13 +116,21 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||
(_) => bootstrap.wipeSsss(_wipe),
|
||||
);
|
||||
break;
|
||||
case BootstrapState.askBadSsss:
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => bootstrap.ignoreBadSecrets(true),
|
||||
);
|
||||
break;
|
||||
case BootstrapState.askUseExistingSsss:
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => bootstrap.useExistingSsss(!_wipe),
|
||||
);
|
||||
break;
|
||||
case BootstrapState.askUnlockSsss:
|
||||
throw Exception('This state is not supposed to be implemented');
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => bootstrap.unlockedSsss(),
|
||||
);
|
||||
break;
|
||||
case BootstrapState.askNewSsss:
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => bootstrap.newSsss(),
|
||||
|
@ -235,7 +243,6 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||
(_) => bootstrap.askSetupOnlineKeyBackup(true),
|
||||
);
|
||||
break;
|
||||
case BootstrapState.askBadSsss:
|
||||
case BootstrapState.error:
|
||||
titleText = L10n.of(context).oopsSomethingWentWrong;
|
||||
body = Icon(Icons.error_outline, color: Colors.red, size: 40);
|
||||
|
|
Loading…
Reference in a new issue