mirror of
https://github.com/bitwarden/android.git
synced 2026-07-10 11:51:05 -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 jwtTokenData = parseJwtTokenDataOrNull(jwtToken = accessToken)!!
|
||||||
val userId = jwtTokenData.userId
|
val userId = jwtTokenData.userId
|
||||||
|
|
||||||
// TODO: Update null properties below via sync request (BIT-916)
|
|
||||||
val account = AccountJson(
|
val account = AccountJson(
|
||||||
profile = AccountJson.Profile(
|
profile = AccountJson.Profile(
|
||||||
userId = userId,
|
userId = userId,
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ fun UserStateJson.toUpdatedUserStateJson(
|
|||||||
val userId = syncProfile.id
|
val userId = syncProfile.id
|
||||||
val account = this.accounts[userId] ?: return this
|
val account = this.accounts[userId] ?: return this
|
||||||
val profile = account.profile
|
val profile = account.profile
|
||||||
// TODO: Update additional missing UserStateJson properties (BIT-916)
|
|
||||||
val updatedProfile = profile
|
val updatedProfile = profile
|
||||||
.copy(
|
.copy(
|
||||||
avatarColorHex = syncProfile.avatarColor,
|
avatarColorHex = syncProfile.avatarColor,
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ class CreateAccountViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
PasswordStrengthResult.Error -> {
|
PasswordStrengthResult.Error -> {
|
||||||
// TODO: Assess possible error conditions (BIT-964)
|
// Leave UI the same
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,9 +122,6 @@ class AddSendViewModel @Inject constructor(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
init {
|
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) {
|
when (val addSendType = state.addSendType) {
|
||||||
AddSendType.AddItem -> Unit
|
AddSendType.AddItem -> Unit
|
||||||
is AddSendType.EditItem -> {
|
is AddSendType.EditItem -> {
|
||||||
|
|||||||
@@ -536,7 +536,6 @@ class VaultViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun vaultPendingReceive(vaultData: DataState.Pending<VaultData>) {
|
private fun vaultPendingReceive(vaultData: DataState.Pending<VaultData>) {
|
||||||
// TODO update state to refresh state BIT-505
|
|
||||||
mutableStateFlow.update {
|
mutableStateFlow.update {
|
||||||
it.copy(
|
it.copy(
|
||||||
viewState = vaultData.data.toViewState(
|
viewState = vaultData.data.toViewState(
|
||||||
|
|||||||
Reference in New Issue
Block a user