dkforest

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

commit 616ec24c20f5cb85c2f8a5cb2a1a9a700653d61c
parent 57634d74676316ca61a769841e211e115290776e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 28 May 2023 23:49:18 -0700

cleanup

Diffstat:
Mpkg/web/handlers/handlers.go | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5105,13 +5105,9 @@ func ChatStreamMessagesHandler(c echo.Context) error { defer sub.Close() readMarkerRev := 0 - displayReadMarker := false - fstMsgTsRound := msgs[0].CreatedAt.Round(time.Second) readMarkerTsRound := data.ReadMarker.ReadAt.Round(time.Second) - if fstMsgTsRound.Before(readMarkerTsRound) || fstMsgTsRound.Equal(readMarkerTsRound) { - displayReadMarker = true - } + displayReadMarker := fstMsgTsRound.Before(readMarkerTsRound) || fstMsgTsRound.Equal(readMarkerTsRound) var indicatorSelector bool Loop: for {