diff options
author | George Goldberg <george@gberg.me> | 2018-02-06 17:25:53 +0000 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-02-06 17:25:53 +0000 |
commit | 7941c30117efe1b957ac0458c2f0479e3824196d (patch) | |
tree | df791632a9dc790a6f73dec53aae3ba919ebda63 /cmd/platform/sampledata.go | |
parent | e1cd64613591cf5a990442a69ebf188258bd0cb5 (diff) | |
parent | 034dbc07e3068c482e654b6a1a8fcbe4b01c44f3 (diff) | |
download | chat-7941c30117efe1b957ac0458c2f0479e3824196d.tar.gz chat-7941c30117efe1b957ac0458c2f0479e3824196d.tar.bz2 chat-7941c30117efe1b957ac0458c2f0479e3824196d.zip |
Merge branch 'master' into advanced-permissions-phase-1
Diffstat (limited to 'cmd/platform/sampledata.go')
-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" } |