Remove input length check on menuhandler Init

This commit is contained in:
Alfred Kamanda 2025-02-05 19:02:23 +03:00
parent fdde1bb979
commit df58f69032
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -125,12 +125,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
h.st = h.pe.GetState() h.st = h.pe.GetState()
h.ca = h.pe.GetMemory() h.ca = h.pe.GetMemory()
``
if len(input) == 0 {
// move to the top node
h.st.Code = []byte{}
}
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)
if ok { if ok {
ctx = context.WithValue(ctx, "SessionId", sessionId) ctx = context.WithValue(ctx, "SessionId", sessionId)