mirror of
https://github.com/owncast/owncast.git
synced 2024-10-22 20:45:58 +03:00
Increase timeout between join messages from 5 to 10 minutes
This commit is contained in:
parent
36f1195b69
commit
604e1fdbaa
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue