[MM-37578] - Add setting for onboarding (#18068)
* [MM-37578] - Add setting for onboarding * fix lint Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bf1f60d309
Коммит
8bfe24c774
@@ -348,6 +348,7 @@ type ServiceSettings struct {
|
||||
CloseUnusedDirectMessages *bool `access:"experimental_features"`
|
||||
EnablePreviewFeatures *bool `access:"experimental_features"`
|
||||
EnableTutorial *bool `access:"experimental_features"`
|
||||
EnableOnboardingFlow *bool `access:"experimental_features"`
|
||||
ExperimentalEnableDefaultChannelLeaveJoinMessages *bool `access:"experimental_features"`
|
||||
ExperimentalGroupUnreadChannels *string `access:"experimental_features"`
|
||||
ExperimentalChannelOrganization *bool `access:"experimental_features"`
|
||||
@@ -578,6 +579,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
s.EnableTutorial = NewBool(true)
|
||||
}
|
||||
|
||||
if s.EnableOnboardingFlow == nil {
|
||||
s.EnableOnboardingFlow = NewBool(true)
|
||||
}
|
||||
|
||||
// Must be manually enabled for existing installations.
|
||||
if s.ExtendSessionLengthWithActivity == nil {
|
||||
s.ExtendSessionLengthWithActivity = NewBool(!isUpdate)
|
||||
|
||||
Ссылка в новой задаче
Block a user