I have three dialogs : DialogA
, DialogB
and DialogC
.DialogA
and DialogB
can both call DialogC
.Now if DialogC
is called from DialogA
, at the end of DialogC
, how do I determine that the DialogC
was called from DialogA
and I need to call it back.
If I use return await context.endDialog();
, it moves to the next step of the DialogA
.
The dialog calls happen based on condition like
DialogA {
async step1(context) {
if(some condition) {
return await context.beginDialog(DialogC);
}
//some other code
}
async step2(context) {
//step2 processing code
}
}
All the dialogs are WATERFALLDIALOG.So what I need to find is how do I return to the same point where I had called the DialogC
from either of the dialogs DialogA
or DialogB
or restart the DialogA
or DialogB
.