dkforest

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

commit 0067f5fedbd0edca1c117ca1703358cf5ba08327
parent 5e08ad0ae8bd536e9b9f1e578c7416cfb5ecef7a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 28 Dec 2023 22:14:10 -0500

cleanup

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

diff --git a/pkg/web/handlers/api/v1/chat.go b/pkg/web/handlers/api/v1/chat.go @@ -438,12 +438,11 @@ func ChatStreamMenuHandler(c echo.Context) error { quit := hutils.SetStreaming(c) send := func(s string) { _, _ = c.Response().Write([]byte(s)) } - selfRefreshLoadingIconTopic := "refresh_loading_icon_" + string(authUser.Username) var prevHash string var menuID int var once utils.Once - sub := database.MsgPubSub.Subscribe([]string{selfRefreshLoadingIconTopic}) + sub := database.MsgPubSub.Subscribe([]string{"refresh_loading_icon_" + string(authUser.Username)}) defer sub.Close() send(GenerateStyle(authUser, ChatMessagesData{}))