From b43a2e7ac09106c5508f2c4a1b7ac6df79ee2ede Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Wed, 22 Jul 2020 09:46:21 +0200 Subject: [PATCH] Set the message count for the notification badge --- .../vector/riotx/features/notifications/NotificationUtils.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/src/main/java/im/vector/riotx/features/notifications/NotificationUtils.kt b/vector/src/main/java/im/vector/riotx/features/notifications/NotificationUtils.kt index 9bcbd87875..a7a314a952 100755 --- a/vector/src/main/java/im/vector/riotx/features/notifications/NotificationUtils.kt +++ b/vector/src/main/java/im/vector/riotx/features/notifications/NotificationUtils.kt @@ -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