Do not send user joined events to chat clients if stream is not active. Closes #750
This commit is contained in:
@@ -77,10 +77,11 @@ func (s *server) usernameChanged(msg models.NameChangeEvent) {
|
||||
}
|
||||
|
||||
func (s *server) userJoined(msg models.UserJoinedEvent) {
|
||||
for _, c := range s.Clients {
|
||||
c.userJoinedChannel <- msg
|
||||
if s.listener.IsStreamConnected() {
|
||||
for _, c := range s.Clients {
|
||||
c.userJoinedChannel <- msg
|
||||
}
|
||||
}
|
||||
|
||||
go webhooks.SendChatEventUserJoined(msg)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user