refactor: Always open Chat Backup as page right after login
This commit is contained in:
parent
34a58c5962
commit
31a204f1ea
8 changed files with 95 additions and 69 deletions
|
|
@ -28,7 +28,6 @@ import '../../../utils/account_bundles.dart';
|
|||
import '../../config/setting_keys.dart';
|
||||
import '../../utils/url_launcher.dart';
|
||||
import '../../widgets/matrix.dart';
|
||||
import '../bootstrap/bootstrap_dialog.dart';
|
||||
|
||||
enum PopupMenuAction {
|
||||
settings,
|
||||
|
|
@ -754,15 +753,6 @@ class ChatListController extends State<ChatList>
|
|||
setState(() {
|
||||
waitForFirstSync = true;
|
||||
});
|
||||
|
||||
// Display first login bootstrap if enabled
|
||||
if (client.encryption?.keyManager.enabled == true) {
|
||||
if (await client.encryption?.keyManager.isCached() == false ||
|
||||
await client.encryption?.crossSigning.isCached() == false ||
|
||||
client.isUnknownSession && !mounted) {
|
||||
await BootstrapDialog(client: client).show(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue