Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Increase the delay for the welcome chat message a bit

Gabe Kangas35259bf52c90
diff --git a/core/chat/server.go b/core/chat/server.go
index 4d8cabc125..14cdfe5cad 100644
--- a/core/chat/server.go
+++ b/core/chat/server.go
@@ -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()}