commit d0018474f37b3baa698c33018085101b9b100ab1 parent eaa0954e331bf5d82b58d62d43dbf3dfff4d1533 Author: n0tr1v <n0tr1v@protonmail.com> Date: Wed, 24 May 2023 20:40:40 -0700 useless Diffstat:
| M | pkg/web/handlers/handlers.go | | | 9 | --------- |
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5015,7 +5015,6 @@ func ChatStreamMessagesHandler(c echo.Context) error { sub := database.MsgPubSub.Subscribe(authorizedChannels) defer sub.Close() - i := 0 var indicatorSelector bool Loop: for { @@ -5068,8 +5067,6 @@ Loop: continue } - i++ - msg := msgTyp.Msg if msg.User.ID == 0 { @@ -5134,12 +5131,6 @@ Loop: } c.Response().Flush() - - // Refresh the page to prevent having it growing infinitely bigger - if i == 5000 { - send(`<meta http-equiv="refresh" content="0" />`) - return nil - } } // Display a big banner stating the connection is closed.