Skip to content

Commit

Permalink
[Backup] Execute reset every key and recovery word
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Sep 16, 2023
1 parent 247acfe commit 1b114c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion lib/pages/bootstrap/bootstrap_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/bootstrap/tom_bootstrap_dialog.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/widgets/adaptive_flat_button.dart';
import 'package:flutter/cupertino.dart';
Expand Down Expand Up @@ -374,7 +375,16 @@ class BootstrapDialogState extends State<BootstrapDialog> {
cancelLabel: L10n.of(context)!.cancel,
isDestructiveAction: true,
)) {
setState(() => _createBootstrap(true));
await TomBootstrapDialog(
wipe: true,
wipeRecovery: true,
client: widget.client,
).show(context).then(
(value) => Navigator.of(
context,
rootNavigator: false,
).pop<bool>(false),
);
}
},
)
Expand Down
1 change: 0 additions & 1 deletion lib/pages/settings/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class SettingsView extends StatelessWidget {

@override
Widget build(BuildContext context) {
final showChatBackupBanner = controller.showChatBackupBanner;
return Scaffold(
appBar: AppBar(
leading: CloseButton(
Expand Down

0 comments on commit 1b114c6

Please sign in to comment.