dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ebbcb27e89a2a4eb2373000d0b60a411e0e4a170
parent f5d76254f3dc4d2f1dc897aea2dbe55f1f34917f
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 28 Dec 2023 18:46:36 -0500

cleanup

Diffstat:
Mpkg/web/handlers/api/v1/chat.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/web/handlers/api/v1/chat.go b/pkg/web/handlers/api/v1/chat.go @@ -430,8 +430,8 @@ func ChatStreamMenuHandler(c echo.Context) error { hutils.SetStreamingHeaders(c) quit := hutils.CloseSignalChan(c) send := func(s string) { _, _ = c.Response().Write([]byte(s)) } - prevHash := "" - menuID := 0 + var prevHash string + var menuID int var once utils.Once send(GenerateStyle(authUser, ChatMessagesData{}))