0

Increase the delay for the welcome chat message a bit

This commit is contained in:
Gabe Kangas 2020-07-20 00:22:32 -07:00
parent a7b625c37f
commit a7812f8d04

View File

@ -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()}