diff options
author | Jesús Espino <jespinog@gmail.com> | 2018-02-01 01:31:49 +0100 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2018-01-31 16:31:49 -0800 |
commit | f988e5bc305cee1d1ae23717caec7ff20bb79811 (patch) | |
tree | 762b11958857d244423343e98f1af9ef89253ee8 | |
parent | c89cf572f7bd22f1e64046b28552dc2e934010ba (diff) | |
download | chat-f988e5bc305cee1d1ae23717caec7ff20bb79811.tar.gz chat-f988e5bc305cee1d1ae23717caec7ff20bb79811.tar.bz2 chat-f988e5bc305cee1d1ae23717caec7ff20bb79811.zip |
Use default configurations for user-0 in sampledata (#8174)
-rw-r--r-- | cmd/platform/sampledata.go | 8 |
1 files changed, 4 insertions, 4 deletions
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" } |