mirror of
https://github.com/AChep/keyguard-app.git
synced 2025-02-02 23:27:35 +01:00
fix: Respect ignore DUPLICATE_URIS flag
This commit is contained in:
parent
eb6b0877d8
commit
a1feeb495a
@ -1247,6 +1247,9 @@ sealed interface DFilter {
|
||||
val cipherUrlDuplicateCheck = directDI.instance<CipherUrlDuplicateCheck>()
|
||||
ciphers
|
||||
.filter { cipher ->
|
||||
if (shouldIgnore(cipher)) {
|
||||
return@filter false
|
||||
}
|
||||
val uris = cipher.uris
|
||||
if (uris.isEmpty()) {
|
||||
return@filter false
|
||||
@ -1273,6 +1276,10 @@ sealed interface DFilter {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
private fun shouldIgnore(
|
||||
cipher: DSecret,
|
||||
) = cipher.ignores(DWatchtowerAlertType.DUPLICATE_URIS)
|
||||
}
|
||||
|
||||
@Serializable
|
||||
|
Loading…
x
Reference in New Issue
Block a user