summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-02-01 01:31:49 +0100
committerCorey Hulen <corey@hulen.com>2018-01-31 16:31:49 -0800
commitf988e5bc305cee1d1ae23717caec7ff20bb79811 (patch)
tree762b11958857d244423343e98f1af9ef89253ee8 /cmd
parentc89cf572f7bd22f1e64046b28552dc2e934010ba (diff)
downloadchat-f988e5bc305cee1d1ae23717caec7ff20bb79811.tar.gz
chat-f988e5bc305cee1d1ae23717caec7ff20bb79811.tar.bz2
chat-f988e5bc305cee1d1ae23717caec7ff20bb79811.zip
Use default configurations for user-0 in sampledata (#8174)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/sampledata.go8
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"
}