From 2e7fa23ce70b16a83191dc0742d4eac796d5095e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 10 Feb 2020 19:13:35 +0100 Subject: [PATCH] Fix #980 --- .../android/internal/database/mapper/PushRulesMapper.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/mapper/PushRulesMapper.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/mapper/PushRulesMapper.kt index 26cde21842..a0f644a7cf 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/mapper/PushRulesMapper.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/database/mapper/PushRulesMapper.kt @@ -38,7 +38,7 @@ internal object PushRulesMapper { enabled = pushrule.enabled, ruleId = pushrule.ruleId, conditions = listOf( - PushCondition(Condition.Kind.EventMatch.name, "content.body", pushrule.pattern) + PushCondition(Condition.Kind.EventMatch.value, "content.body", pushrule.pattern) ) ) } @@ -59,7 +59,7 @@ internal object PushRulesMapper { enabled = pushrule.enabled, ruleId = pushrule.ruleId, conditions = listOf( - PushCondition(Condition.Kind.EventMatch.name, "room_id", pushrule.ruleId) + PushCondition(Condition.Kind.EventMatch.value, "room_id", pushrule.ruleId) ) ) } @@ -71,7 +71,7 @@ internal object PushRulesMapper { enabled = pushrule.enabled, ruleId = pushrule.ruleId, conditions = listOf( - PushCondition(Condition.Kind.EventMatch.name, "user_id", pushrule.ruleId) + PushCondition(Condition.Kind.EventMatch.value, "user_id", pushrule.ruleId) ) ) }