From 6f18d4890503a5a278c01199c30de49986ff65c7 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 13 Jul 2022 18:24:17 +0100 Subject: [PATCH] adding missing messaging style config --- .../dapk/st/notifications/AndroidNotificationStyleBuilder.kt | 2 ++ .../kotlin/app/dapk/st/notifications/NotificationChannels.kt | 2 +- .../kotlin/app/dapk/st/notifications/NotificationFactory.kt | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/AndroidNotificationStyleBuilder.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/AndroidNotificationStyleBuilder.kt index 5da92f3..ec91fba 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/AndroidNotificationStyleBuilder.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/AndroidNotificationStyleBuilder.kt @@ -34,6 +34,8 @@ class AndroidNotificationStyleBuilder( .setKey(person.key) .build() ).also { style -> + style.conversationTitle = title + style.isGroupConversation = isGroup content.forEach { val sender = personBuilderFactory() .setName(it.sender.name) diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationChannels.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationChannels.kt index 676d968..6533b10 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationChannels.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationChannels.kt @@ -4,7 +4,7 @@ import android.app.NotificationChannel import android.app.NotificationManager import android.os.Build -private const val channelId = "message" +const val channelId = "message" class NotificationChannels( private val notificationManager: NotificationManager diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt index 84d54d4..7585d5b 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt @@ -10,7 +10,6 @@ import app.dapk.st.matrix.sync.RoomOverview import app.dapk.st.navigator.IntentFactory private const val GROUP_ID = "st" -private const val channelId = "message" class NotificationFactory( private val context: Context,