mirror of
https://github.com/bitwarden/android.git
synced 2026-03-22 06:11:38 -05:00
Remove various unnecessary TODOs (#956)
This commit is contained in:
committed by
Álison Fernandes
parent
61212c3628
commit
300190a520
@@ -23,7 +23,6 @@ fun GetTokenResponseJson.Success.toUserState(
|
||||
val jwtTokenData = parseJwtTokenDataOrNull(jwtToken = accessToken)!!
|
||||
val userId = jwtTokenData.userId
|
||||
|
||||
// TODO: Update null properties below via sync request (BIT-916)
|
||||
val account = AccountJson(
|
||||
profile = AccountJson.Profile(
|
||||
userId = userId,
|
||||
|
||||
@@ -23,7 +23,6 @@ fun UserStateJson.toUpdatedUserStateJson(
|
||||
val userId = syncProfile.id
|
||||
val account = this.accounts[userId] ?: return this
|
||||
val profile = account.profile
|
||||
// TODO: Update additional missing UserStateJson properties (BIT-916)
|
||||
val updatedProfile = profile
|
||||
.copy(
|
||||
avatarColorHex = syncProfile.avatarColor,
|
||||
|
||||
@@ -129,7 +129,7 @@ class CreateAccountViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
PasswordStrengthResult.Error -> {
|
||||
// TODO: Assess possible error conditions (BIT-964)
|
||||
// Leave UI the same
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,9 +122,6 @@ class AddSendViewModel @Inject constructor(
|
||||
) {
|
||||
|
||||
init {
|
||||
// TODO: Check the special circumstance to place in custom mode when a new send request is
|
||||
// initiated externally (BIT-1518).
|
||||
|
||||
when (val addSendType = state.addSendType) {
|
||||
AddSendType.AddItem -> Unit
|
||||
is AddSendType.EditItem -> {
|
||||
|
||||
@@ -536,7 +536,6 @@ class VaultViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
private fun vaultPendingReceive(vaultData: DataState.Pending<VaultData>) {
|
||||
// TODO update state to refresh state BIT-505
|
||||
mutableStateFlow.update {
|
||||
it.copy(
|
||||
viewState = vaultData.data.toViewState(
|
||||
|
||||
Reference in New Issue
Block a user