Tiny formatting

This commit is contained in:
Benoit Marty 2021-10-20 21:33:52 +02:00 committed by Adam Brown
parent 2bd2cbf84e
commit be67836a3e

View file

@ -67,8 +67,7 @@ class SummaryGroupMessageCreator @Inject constructor(
summaryInboxStyle.setBigContentTitle(sumTitle)
// TODO get latest event?
.setSummaryText(stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages, nbEvents, nbEvents))
return if (useCompleteNotificationFormat
) {
return if (useCompleteNotificationFormat) {
notificationUtils.buildSummaryListNotification(
summaryInboxStyle,
sumTitle,
@ -76,9 +75,14 @@ class SummaryGroupMessageCreator @Inject constructor(
lastMessageTimestamp = lastMessageTimestamp
)
} else {
processSimpleGroupSummary(summaryIsNoisy, messageCount,
simpleNotifications.size, invitationNotifications.size,
roomNotifications.size, lastMessageTimestamp)
processSimpleGroupSummary(
summaryIsNoisy,
messageCount,
simpleNotifications.size,
invitationNotifications.size,
roomNotifications.size,
lastMessageTimestamp
)
}
}