Fixed getting message log of all messages

This commit is contained in:
dankito 2024-08-21 03:52:24 +02:00
parent b7c0fec629
commit ba6eab79bb
1 changed files with 8 additions and 0 deletions

View File

@ -34,4 +34,12 @@ open class AddAccountResponse(
open val retrievedData: List<RetrievedAccountData>
get() = retrievedTransactionsResponses.mapNotNull { it.retrievedData }
override val messageLog: List<MessageLogEntry>
get() = buildList {
addAll(super.messageLog)
retrievedTransactionsResponses.forEach {
addAll(it.messageLog)
}
}
}