From 4525f97be633cae7c94fdb74ef9c17ac09fdb595 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 21 Nov 2024 14:53:40 +0100 Subject: [PATCH] Enable all notification actions. --- .../android/appconfig/NotificationConfig.kt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/appconfig/src/main/kotlin/io/element/android/appconfig/NotificationConfig.kt b/appconfig/src/main/kotlin/io/element/android/appconfig/NotificationConfig.kt index c5f605e5fe..e44deeb2f4 100644 --- a/appconfig/src/main/kotlin/io/element/android/appconfig/NotificationConfig.kt +++ b/appconfig/src/main/kotlin/io/element/android/appconfig/NotificationConfig.kt @@ -11,14 +11,20 @@ import android.graphics.Color import androidx.annotation.ColorInt object NotificationConfig { - // TODO EAx Implement and set to true at some point - const val SUPPORT_MARK_AS_READ_ACTION = false + /** + * If set to true, the notification will have a "Mark as read" action. + */ + const val SUPPORT_MARK_AS_READ_ACTION = true - // TODO EAx Implement and set to true at some point - const val SUPPORT_JOIN_DECLINE_INVITE = false + /** + * If set to true, the notification for invitation will have two actions to accept or decline the invite. + */ + const val SUPPORT_JOIN_DECLINE_INVITE = true - // TODO EAx Implement and set to true at some point - const val SUPPORT_QUICK_REPLY_ACTION = false + /** + * If set to true, the notification will have a "Quick reply" action, allow to compose and send a message to the room. + */ + const val SUPPORT_QUICK_REPLY_ACTION = true @ColorInt val NOTIFICATION_ACCENT_COLOR: Int = Color.parseColor("#FF0DBD8B")