Updated to new data model, added bank and account display name

This commit is contained in:
dankito 2024-10-15 11:14:16 +02:00
parent bca359d4ed
commit c3655e38ea
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@ fun FeedbackScreen(onClosed: () -> Unit) {
val messageLog by remember { mutableStateOf(DI.bankingService.getMessageLog()) }
val displayedLogEntries by remember { derivedStateOf { messageLog } }
val displayedLogEntries by remember { derivedStateOf { messageLog.sortedBy { it.messageNumber } } }
val displayedLogEntriesText by remember(displayedLogEntries) {
derivedStateOf { displayedLogEntries.map {
"${it.messageNumberString} ${it.type} ${it.messageCategory} ${it.messageSubCategory}${NewLine}${it.message}"
"${it.messageNumberString} ${it.bank?.displayName ?: ""} ${it.account?.displayName ?: ""} ${it.type} ${it.jobType} ${it.messageCategory}${NewLine}${it.message}"
}.joinToString(NewLine + NewLine) }
}