Set the message count for the notification badge

This commit is contained in:
SpiritCroc 2020-07-22 09:46:21 +02:00
parent e1274ac4c2
commit b43a2e7ac0
1 changed files with 3 additions and 0 deletions

View File

@ -533,6 +533,9 @@ class NotificationUtils @Inject constructor(private val context: Context,
// Number of new notifications for API <24 (M and below) devices.
.setSubText(stringProvider.getQuantityString(R.plurals.room_new_messages_notification, messageStyle.messages.size, messageStyle.messages.size))
// Number of new notifications for notification badge
.setNumber(messageStyle.messages.size)
// Auto-bundling is enabled for 4 or more notifications on API 24+ (N+)
// devices and all Wear devices. But we want a custom grouping, so we specify the groupID
// TODO Group should be current user display name