mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-01 12:34:19 -04:00
checkpoint
This commit is contained in:
parent
3edf2ebb46
commit
c40f835ec5
25 changed files with 378 additions and 312 deletions
|
@ -93,10 +93,6 @@ class AccountRepository {
|
|||
}
|
||||
|
||||
AccountInfo? getAccountInfo(TypedKey superIdentityRecordKey) {
|
||||
// Get active account if we have one
|
||||
final activeLocalAccount = getActiveLocalAccount();
|
||||
final active = superIdentityRecordKey == activeLocalAccount;
|
||||
|
||||
// Get which local account we want to fetch the profile for
|
||||
final localAccount = fetchLocalAccount(superIdentityRecordKey);
|
||||
if (localAccount == null) {
|
||||
|
@ -109,7 +105,6 @@ class AccountRepository {
|
|||
// Account was locked
|
||||
return AccountInfo(
|
||||
status: AccountInfoStatus.accountLocked,
|
||||
active: active,
|
||||
localAccount: localAccount,
|
||||
userLogin: null,
|
||||
);
|
||||
|
@ -118,7 +113,6 @@ class AccountRepository {
|
|||
// Got account, decrypted and decoded
|
||||
return AccountInfo(
|
||||
status: AccountInfoStatus.accountUnlocked,
|
||||
active: active,
|
||||
localAccount: localAccount,
|
||||
userLogin: userLogin,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue