From f988e5bc305cee1d1ae23717caec7ff20bb79811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 1 Feb 2018 01:31:49 +0100 Subject: Use default configurations for user-0 in sampledata (#8174) --- cmd/platform/sampledata.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/platform/sampledata.go b/cmd/platform/sampledata.go index 3e8bf1093..98a041d8f 100644 --- a/cmd/platform/sampledata.go +++ b/cmd/platform/sampledata.go @@ -346,22 +346,22 @@ func createUser(idx int, teamMemberships int, channelMemberships int, teamsAndCh } useMilitaryTime := "false" - if rand.Intn(2) == 0 { + if idx != 0 && rand.Intn(2) == 0 { useMilitaryTime = "true" } collapsePreviews := "false" - if rand.Intn(2) == 0 { + if idx != 0 && rand.Intn(2) == 0 { collapsePreviews = "true" } messageDisplay := "clean" - if rand.Intn(2) == 0 { + if idx != 0 && rand.Intn(2) == 0 { messageDisplay = "compact" } channelDisplayMode := "full" - if rand.Intn(2) == 0 { + if idx != 0 && rand.Intn(2) == 0 { channelDisplayMode = "centered" } -- cgit v1.2.3-1-g7c22