Add MobileExternalBrowser to client config (#28180)

* Add MobileExternalBrowser to client config

* set config MobileExternalBrowser as a pointer

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Elias Nahum
2024-09-18 19:50:07 +08:00
коммит произвёл GitHub
родитель 7a0019b63a
Коммит bbc281d807
2 изменённых файлов: 6 добавлений и 0 удалений

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

@@ -294,6 +294,7 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m
props["AppDownloadLink"] = *c.NativeAppSettings.AppDownloadLink
props["AndroidAppDownloadLink"] = *c.NativeAppSettings.AndroidAppDownloadLink
props["IosAppDownloadLink"] = *c.NativeAppSettings.IosAppDownloadLink
props["MobileExternalBrowser"] = strconv.FormatBool(*c.NativeAppSettings.MobileExternalBrowser)
props["DiagnosticId"] = telemetryID
props["TelemetryId"] = telemetryID

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

@@ -2764,6 +2764,7 @@ type NativeAppSettings struct {
AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
AndroidAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
IosAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
MobileExternalBrowser *bool `access:"site_customization,write_restrictable,cloud_restrictable"`
}
func (s *NativeAppSettings) SetDefaults() {
@@ -2782,6 +2783,10 @@ func (s *NativeAppSettings) SetDefaults() {
if s.AppCustomURLSchemes == nil {
s.AppCustomURLSchemes = GetDefaultAppCustomURLSchemes()
}
if s.MobileExternalBrowser == nil {
s.MobileExternalBrowser = NewPointer(false)
}
}
type ElasticsearchSettings struct {