Fixed setting followUpResponse as for re-send messages it's already set and dialog already closed, therefore
This commit is contained in:
parent
962aedb89e
commit
7093973e17
|
@ -560,10 +560,12 @@ open class FinTsClient @JvmOverloads constructor(
|
||||||
|
|
||||||
// if there's a Aufsetzpunkt (continuationId) set, then response is not complete yet, there's more information to fetch by sending this Aufsetzpunkt
|
// if there's a Aufsetzpunkt (continuationId) set, then response is not complete yet, there's more information to fetch by sending this Aufsetzpunkt
|
||||||
handledResponse.aufsetzpunkt?.let { continuationId ->
|
handledResponse.aufsetzpunkt?.let { continuationId ->
|
||||||
|
if (handledResponse.followUpResponse == null) { // for re-sent messages followUpResponse is already set and dialog already closed -> would be overwritten with an error response that dialog is closed
|
||||||
handledResponse.followUpResponse = getFollowUpMessageForContinuationId(handledResponse, continuationId, message, bank, customer, dialogData)
|
handledResponse.followUpResponse = getFollowUpMessageForContinuationId(handledResponse, continuationId, message, bank, customer, dialogData)
|
||||||
|
|
||||||
handledResponse.hasFollowUpMessageButCouldNotReceiveIt = handledResponse.followUpResponse == null
|
handledResponse.hasFollowUpMessageButCouldNotReceiveIt = handledResponse.followUpResponse == null
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return handledResponse
|
return handledResponse
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue