move to the top node and use h.st.Restart() to re-initialize the state

This commit is contained in:
Alfred Kamanda 2025-02-04 13:09:16 +03:00
parent 63bef2f58c
commit 371dc092b9
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -129,7 +129,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
if len(input) == 0 {
// move to the top node
h.st.Code = []byte{}
h.st.ExecPath = []string{}
h.st.Restart()
}
sessionId, ok := ctx.Value("SessionId").(string)