mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Do not overlay offline ciphers with merge conflicts
This commit is contained in:
parent
ee61c83409
commit
d4d980b576
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ class VaultDiskSourceImpl(
|
|||
getOfflineCiphers(userId),
|
||||
{ ciphers, offlineCiphers ->
|
||||
val overlaid = ciphers.map { cipher ->
|
||||
offlineCiphers.find { it.id == cipher.id }?.toSdkCipherJson() ?: cipher
|
||||
// only overlay ciphers that have not had a merge conflict
|
||||
offlineCiphers.filter { !it.mergeConflict }.find { it.id == cipher.id }?.toSdkCipherJson() ?: cipher
|
||||
}
|
||||
// TODO add new offline items to the vault list
|
||||
// val newOffline = offlineCiphers.filter { it.id.startsWith("create") }.map { it.toSdkCipherJson() }
|
||||
|
|
Loading…
Reference in a new issue