mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Reset bootstrap on bad ssss
This commit is contained in:
parent
b71dd4bc08
commit
b78b6542a2
@ -116,13 +116,21 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
(_) => bootstrap.wipeSsss(_wipe),
|
(_) => bootstrap.wipeSsss(_wipe),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case BootstrapState.askBadSsss:
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
|
(_) => bootstrap.ignoreBadSecrets(true),
|
||||||
|
);
|
||||||
|
break;
|
||||||
case BootstrapState.askUseExistingSsss:
|
case BootstrapState.askUseExistingSsss:
|
||||||
WidgetsBinding.instance.addPostFrameCallback(
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
(_) => bootstrap.useExistingSsss(!_wipe),
|
(_) => bootstrap.useExistingSsss(!_wipe),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case BootstrapState.askUnlockSsss:
|
case BootstrapState.askUnlockSsss:
|
||||||
throw Exception('This state is not supposed to be implemented');
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
|
(_) => bootstrap.unlockedSsss(),
|
||||||
|
);
|
||||||
|
break;
|
||||||
case BootstrapState.askNewSsss:
|
case BootstrapState.askNewSsss:
|
||||||
WidgetsBinding.instance.addPostFrameCallback(
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
(_) => bootstrap.newSsss(),
|
(_) => bootstrap.newSsss(),
|
||||||
@ -235,7 +243,6 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
(_) => bootstrap.askSetupOnlineKeyBackup(true),
|
(_) => bootstrap.askSetupOnlineKeyBackup(true),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case BootstrapState.askBadSsss:
|
|
||||||
case BootstrapState.error:
|
case BootstrapState.error:
|
||||||
titleText = L10n.of(context).oopsSomethingWentWrong;
|
titleText = L10n.of(context).oopsSomethingWentWrong;
|
||||||
body = Icon(Icons.error_outline, color: Colors.red, size: 40);
|
body = Icon(Icons.error_outline, color: Colors.red, size: 40);
|
||||||
|
Loading…
Reference in New Issue
Block a user