Merge pull request #6666 from thundernest/notification_summary_actions
Limit summary notification actions to active notifications
This commit is contained in:
commit
afaa6a17c9
2 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,9 @@ internal data class NotificationData(
|
|||
}
|
||||
}
|
||||
|
||||
val activeMessageReferences: List<MessageReference>
|
||||
get() = activeNotifications.map { it.content.messageReference }
|
||||
|
||||
fun isEmpty() = activeNotifications.isEmpty()
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -37,7 +37,7 @@ internal class SummaryNotificationDataCreator(
|
|||
timestamp = timestamp,
|
||||
content = data.summaryContent,
|
||||
additionalMessagesCount = data.additionalMessagesCount,
|
||||
messageReferences = data.messageReferences,
|
||||
messageReferences = data.activeMessageReferences,
|
||||
actions = createSummaryNotificationActions(),
|
||||
wearActions = createSummaryWearNotificationActions(data.account)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue