It would be easier to access session from conversation to get the latest session version.
For example if we have nested conversations:
function conv(conversation, session) {
const { a, b } = subConv(conversation, session);
ctx.session.a = a;
}
function subConv(conversation, session) {
const data = ;// get data from database using ID or whatever
return data;
}
It would be easier to access session from conversation to get the latest session version.
For example if we have nested conversations: