From df58f690323da15c0f724df97bda11c67d6015a7 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 5 Feb 2025 19:02:23 +0300 Subject: [PATCH] Remove input length check on menuhandler Init --- handlers/application/menuhandler.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index 53ada39..4518ba7 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -125,12 +125,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso h.st = h.pe.GetState() h.ca = h.pe.GetMemory() - - if len(input) == 0 { - // move to the top node - h.st.Code = []byte{} - } - +`` sessionId, ok := ctx.Value("SessionId").(string) if ok { ctx = context.WithValue(ctx, "SessionId", sessionId)