diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/common/model/DFilter.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/common/model/DFilter.kt index 3b99a01..183d0c6 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/common/model/DFilter.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/common/model/DFilter.kt @@ -1247,6 +1247,9 @@ sealed interface DFilter { val cipherUrlDuplicateCheck = directDI.instance() 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