From b6de057cc48ec8fccb80eb7fcb0ecc85259a5499 Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Mon, 4 Aug 2025 11:21:14 +0300 Subject: [PATCH] add a reset for the DATA_RECIPIENT_ACTIVE_TOKEN key --- handlers/application/send.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handlers/application/send.go b/handlers/application/send.go index 6170413..5ccc58d 100644 --- a/handlers/application/send.go +++ b/handlers/application/send.go @@ -211,6 +211,11 @@ func (h *MenuHandlers) TransactionReset(ctx context.Context, sym string, input [ return res, nil } + err = store.WriteEntry(ctx, sessionId, storedb.DATA_RECIPIENT_ACTIVE_TOKEN, []byte("")) + if err != nil { + return res, nil + } + res.FlagReset = append(res.FlagReset, flag_invalid_recipient, flag_invalid_recipient_with_invite) return res, nil