Initial commit
This commit is contained in:
35
lib/pages/bootstrap/view_model/bootstrap_state.dart
Normal file
35
lib/pages/bootstrap/view_model/bootstrap_state.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
// SPDX-FileCopyrightText: 2019-Present Christian Kußowski
|
||||
// SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import 'package:matrix/encryption.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
class BootstrapViewModelState {
|
||||
String? recoveryKey;
|
||||
bool isLoading = false;
|
||||
Object? unlockWithError;
|
||||
({
|
||||
bool connected,
|
||||
bool crossSigningEnabled,
|
||||
bool initialized,
|
||||
bool keyBackupEnabled,
|
||||
})?
|
||||
cryptoIdentityState;
|
||||
bool reset = false;
|
||||
KeyVerification? keyVerification;
|
||||
List<DeviceKeys>? connectedDevices;
|
||||
bool obscureText = true;
|
||||
bool waitingForSecrets = false;
|
||||
bool noSecretsreceived = false;
|
||||
|
||||
bool newPassphraseEqualsRepeatPassphrase = false;
|
||||
bool newPassphraseLongEnough = false;
|
||||
bool newPassphraseUpperAndLowerCase = false;
|
||||
bool newPassphraseSpecialCharacters = false;
|
||||
bool newPassphraseNumbers = false;
|
||||
bool passphraseOrRecoveryKeyEntered = false;
|
||||
bool recoveryKeyDownloaded = false;
|
||||
bool recoveryKeyStoredInSecureStorage = false;
|
||||
}
|
||||
Reference in New Issue
Block a user