Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Always return new color

Acho Arnolda478a37a73eb
diff --git a/api/pkg/services/message_thread_service.go b/api/pkg/services/message_thread_service.go
index ee99887f..d9f75e58 100644
--- a/api/pkg/services/message_thread_service.go
+++ b/api/pkg/services/message_thread_service.go
@@ -157,6 +157,7 @@ func (service *MessageThreadService) getColor() string {
"deep-orange",
"brown",
}
+ rand.Seed(time.Now().UnixNano())
return colors[rand.Intn(len(colors))]
}