mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 10:48:54 +03:00
Fix rule parameter not needed anymore
This commit is contained in:
parent
365ec8ef72
commit
144d6c99a6
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ data class PushCondition(
|
|||
val iz: String? = null
|
||||
) {
|
||||
|
||||
fun asExecutableCondition(rule: PushRule): Condition? {
|
||||
fun asExecutableCondition(): Condition? {
|
||||
return when (Kind.fromString(kind)) {
|
||||
Kind.EventMatch -> {
|
||||
if (key != null && pattern != null) {
|
||||
|
|
|
@ -28,7 +28,7 @@ internal class PushRuleFinder @Inject constructor(
|
|||
return rules.firstOrNull { rule ->
|
||||
// All conditions must hold true for an event in order to apply the action for the event.
|
||||
rule.enabled && rule.conditions?.all {
|
||||
it.asExecutableCondition(rule)?.isSatisfied(event, conditionResolver) ?: false
|
||||
it.asExecutableCondition()?.isSatisfied(event, conditionResolver) ?: false
|
||||
} ?: false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue