Fixed that initDialogWithStrongCustomerAuthentication() JobContext.startNewDialog() hasn't been called causing message number to be 2 instead of 1 (and institution therefore to abort this dialog)
This commit is contained in:
parent
796218c2d6
commit
c9884a380e
|
@ -147,8 +147,6 @@ open class FinTsJobExecutor(
|
||||||
|
|
||||||
getUsersTanMethod(context) { didSelectTanMethod ->
|
getUsersTanMethod(context) { didSelectTanMethod ->
|
||||||
if (didSelectTanMethod) {
|
if (didSelectTanMethod) {
|
||||||
context.startNewDialog()
|
|
||||||
|
|
||||||
initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { initDialogResponse ->
|
initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { initDialogResponse ->
|
||||||
closeDialog(context)
|
closeDialog(context)
|
||||||
|
|
||||||
|
@ -164,9 +162,6 @@ open class FinTsJobExecutor(
|
||||||
|
|
||||||
|
|
||||||
open fun getAccounts(context: JobContext, callback: (BankResponse) -> Unit) {
|
open fun getAccounts(context: JobContext, callback: (BankResponse) -> Unit) {
|
||||||
|
|
||||||
context.startNewDialog(false)
|
|
||||||
|
|
||||||
initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { response ->
|
initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context) { response ->
|
||||||
closeDialog(context)
|
closeDialog(context)
|
||||||
|
|
||||||
|
@ -579,6 +574,8 @@ open class FinTsJobExecutor(
|
||||||
|
|
||||||
protected open fun initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context: JobContext, callback: (BankResponse) -> Unit) {
|
protected open fun initDialogWithStrongCustomerAuthenticationAfterSuccessfulPreconditionChecks(context: JobContext, callback: (BankResponse) -> Unit) {
|
||||||
|
|
||||||
|
context.startNewDialog(false) // don't know if it's ok for all invocations of this method to set closeDialog to false (was actually only set in getAccounts())
|
||||||
|
|
||||||
val message = messageBuilder.createInitDialogMessage(context)
|
val message = messageBuilder.createInitDialogMessage(context)
|
||||||
|
|
||||||
getAndHandleResponseForMessage(context, message, callback)
|
getAndHandleResponseForMessage(context, message, callback)
|
||||||
|
|
Loading…
Reference in New Issue