Use last event when generating ticker text.

This commit is contained in:
Nolan Darilek 2020-05-07 15:29:42 +00:00
parent 6bbded1e65
commit 6e8e7164c6
1 changed files with 2 additions and 2 deletions

View File

@ -344,9 +344,9 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
}
val tickerText = if (roomEventGroupInfo.isDirect) {
stringProvider.getString(R.string.notification_ticker_text_dm, events[0].senderName, events[0].description)
stringProvider.getString(R.string.notification_ticker_text_dm, events.last().senderName, events.last().description)
} else {
stringProvider.getString(R.string.notification_ticker_text_group, roomName, events[0].senderName, events[0].description)
stringProvider.getString(R.string.notification_ticker_text_group, roomName, events.last().senderName, events.last().description)
}
val notification = notificationUtils.buildMessagesListNotification(