[MM-19344] add option to render latex (#12907)

Этот коммит содержится в:
Guillermo Vayá
2019-10-25 19:58:48 +02:00
коммит произвёл Harrison Healey
родитель c0186cef1a
Коммит f58e2ffd0f
3 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@@ -325,6 +325,7 @@ type ServiceSettings struct {
DisableBotsWhenOwnerIsDeactivated *bool `restricted:"true"`
EnableBotAccountCreation *bool
EnableSVGs *bool
EnableLatex *bool
}
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
@@ -689,6 +690,14 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
s.EnableSVGs = NewBool(false)
}
}
if s.EnableLatex == nil {
if isUpdate {
s.EnableLatex = NewBool(true)
} else {
s.EnableLatex = NewBool(false)
}
}
}
type ClusterSettings struct {