mirror of
https://github.com/bitwarden/android.git
synced 2026-06-03 11:16:40 -05:00
BIT-1912: Store collection ids after creation or share. (#1033)
This commit is contained in:
committed by
Álison Fernandes
parent
c33fc8cf97
commit
c262dc03c1
@@ -633,7 +633,12 @@ class VaultRepositoryImpl(
|
||||
),
|
||||
)
|
||||
}
|
||||
.onSuccess { vaultDiskSource.saveCipher(userId = userId, cipher = it) }
|
||||
.onSuccess {
|
||||
vaultDiskSource.saveCipher(
|
||||
userId = userId,
|
||||
cipher = it.copy(collectionIds = collectionIds),
|
||||
)
|
||||
}
|
||||
.fold(
|
||||
onFailure = { CreateCipherResult.Error },
|
||||
onSuccess = { CreateCipherResult.Success },
|
||||
@@ -797,7 +802,12 @@ class VaultRepositoryImpl(
|
||||
),
|
||||
)
|
||||
}
|
||||
.onSuccess { vaultDiskSource.saveCipher(userId = userId, cipher = it) }
|
||||
.onSuccess {
|
||||
vaultDiskSource.saveCipher(
|
||||
userId = userId,
|
||||
cipher = it.copy(collectionIds = collectionIds),
|
||||
)
|
||||
}
|
||||
.fold(
|
||||
onFailure = { ShareCipherResult.Error },
|
||||
onSuccess = { ShareCipherResult.Success },
|
||||
|
||||
Reference in New Issue
Block a user