Browse Source

Increase the delay for the welcome chat message a bit

pull/80/head
Gabe Kangas 5 years ago
parent
commit
a7812f8d04
  1. 3
      core/chat/server.go

3
core/chat/server.go

@ -126,7 +126,8 @@ func (s *server) Listen() { @@ -126,7 +126,8 @@ func (s *server) Listen() {
func (s *server) sendWelcomeMessageToClient(c *Client) {
go func() {
time.Sleep(5 * time.Second)
// Add an artificial delay so people notice this message come in.
time.Sleep(7 * time.Second)
initialChatMessageText := fmt.Sprintf("Welcome to %s! %s", config.Config.InstanceDetails.Title, config.Config.InstanceDetails.Summary)
initialMessage := models.ChatMessage{"owncast-server", config.Config.InstanceDetails.Name, initialChatMessageText, config.Config.InstanceDetails.Logo["small"], "initial-message-1", "CHAT", true, time.Now()}

Loading…
Cancel
Save