Fixed that rebuildMessage() increased message number even though createMessage() below also increased it -> message had wrong number and got rejected by bank

This commit is contained in:
dankito 2020-05-14 16:01:24 +02:00
parent bfdb3833a6
commit 13f772a978
1 changed files with 0 additions and 2 deletions

View File

@ -264,8 +264,6 @@ open class MessageBuilder(protected val generator: ISegmentNumberGenerator = Seg
open fun rebuildMessage(message: MessageBuilderResult, dialogContext: DialogContext): MessageBuilderResult { open fun rebuildMessage(message: MessageBuilderResult, dialogContext: DialogContext): MessageBuilderResult {
dialogContext.increaseMessageNumber()
return createSignedMessageBuilderResult(dialogContext, message.messageBodySegments) return createSignedMessageBuilderResult(dialogContext, message.messageBodySegments)
} }