Skip to content

Commit a478a37

Browse files
committed
Always return new color
1 parent 2cffc0a commit a478a37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/pkg/services/message_thread_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func (service *MessageThreadService) getColor() string {
157157
"deep-orange",
158158
"brown",
159159
}
160+
rand.Seed(time.Now().UnixNano())
160161
return colors[rand.Intn(len(colors))]
161162
}
162163

0 commit comments

Comments
 (0)