From 13f772a9789c9a48ec2fc436ca11644634588289 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 14 May 2020 16:01:24 +0200 Subject: [PATCH] Fixed that rebuildMessage() increased message number even though createMessage() below also increased it -> message had wrong number and got rejected by bank --- .../main/kotlin/net/dankito/fints/messages/MessageBuilder.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/fints4k/src/main/kotlin/net/dankito/fints/messages/MessageBuilder.kt b/fints4k/src/main/kotlin/net/dankito/fints/messages/MessageBuilder.kt index 72fa9cbf..e888d884 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/messages/MessageBuilder.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/messages/MessageBuilder.kt @@ -264,8 +264,6 @@ open class MessageBuilder(protected val generator: ISegmentNumberGenerator = Seg open fun rebuildMessage(message: MessageBuilderResult, dialogContext: DialogContext): MessageBuilderResult { - dialogContext.increaseMessageNumber() - return createSignedMessageBuilderResult(dialogContext, message.messageBodySegments) }