Use default configurations for user-0 in sampledata (#8174)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
c89cf572f7
Коммит
f988e5bc30
@@ -346,22 +346,22 @@ func createUser(idx int, teamMemberships int, channelMemberships int, teamsAndCh
|
|||||||
}
|
}
|
||||||
|
|
||||||
useMilitaryTime := "false"
|
useMilitaryTime := "false"
|
||||||
if rand.Intn(2) == 0 {
|
if idx != 0 && rand.Intn(2) == 0 {
|
||||||
useMilitaryTime = "true"
|
useMilitaryTime = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
collapsePreviews := "false"
|
collapsePreviews := "false"
|
||||||
if rand.Intn(2) == 0 {
|
if idx != 0 && rand.Intn(2) == 0 {
|
||||||
collapsePreviews = "true"
|
collapsePreviews = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
messageDisplay := "clean"
|
messageDisplay := "clean"
|
||||||
if rand.Intn(2) == 0 {
|
if idx != 0 && rand.Intn(2) == 0 {
|
||||||
messageDisplay = "compact"
|
messageDisplay = "compact"
|
||||||
}
|
}
|
||||||
|
|
||||||
channelDisplayMode := "full"
|
channelDisplayMode := "full"
|
||||||
if rand.Intn(2) == 0 {
|
if idx != 0 && rand.Intn(2) == 0 {
|
||||||
channelDisplayMode = "centered"
|
channelDisplayMode = "centered"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user