From 604e1fdbaa1af90174fafb7698060a243645f0f0 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 21 Mar 2023 02:05:09 -0700 Subject: [PATCH] Increase timeout between join messages from 5 to 10 minutes --- core/chat/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chat/server.go b/core/chat/server.go index 33a7b50da..285e370ae 100644 --- a/core/chat/server.go +++ b/core/chat/server.go @@ -91,9 +91,9 @@ func (s *Server) Addclient(conn *websocket.Conn, user *user.User, accessToken st ConnectedAt: time.Now(), } - // Do not send user re-joined broadcast message if they've been active within 5 minutes. + // Do not send user re-joined broadcast message if they've been active within 10 minutes. shouldSendJoinedMessages := data.GetChatJoinMessagesEnabled() - if previouslyLastSeen, ok := _lastSeenCache[user.ID]; ok && time.Since(previouslyLastSeen) < time.Minute*5 { + if previouslyLastSeen, ok := _lastSeenCache[user.ID]; ok && time.Since(previouslyLastSeen) < time.Minute*10 { shouldSendJoinedMessages = false }