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:
parent
bfdb3833a6
commit
13f772a978
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue