dkforest

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

commit 76f60caa36f09bf90b7b8d9c8fa854f7a0ad3fdf
parent abc20703e3f2f5e645dd14ac166b646fa89547bd
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 15 Jun 2023 21:58:37 -0700

cleanup

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

diff --git a/pkg/web/handlers/api/v1/chat.go b/pkg/web/handlers/api/v1/chat.go @@ -181,7 +181,7 @@ func ChatStreamMessagesHandler(c echo.Context) error { if len(msgs) > 0 { fstMsgTsRound := msgs[0].CreatedAt.Round(time.Second) readMarkerTsRound := data.ReadMarker.ReadAt.Round(time.Second) - displayReadMarker = fstMsgTsRound.Before(readMarkerTsRound) || fstMsgTsRound.Equal(readMarkerTsRound) + displayReadMarker = !fstMsgTsRound.After(readMarkerTsRound) } // Keep track of current read-marker revision