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>
Этот коммит содержится в:
@@ -294,6 +294,7 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m
|
|||||||
props["AppDownloadLink"] = *c.NativeAppSettings.AppDownloadLink
|
props["AppDownloadLink"] = *c.NativeAppSettings.AppDownloadLink
|
||||||
props["AndroidAppDownloadLink"] = *c.NativeAppSettings.AndroidAppDownloadLink
|
props["AndroidAppDownloadLink"] = *c.NativeAppSettings.AndroidAppDownloadLink
|
||||||
props["IosAppDownloadLink"] = *c.NativeAppSettings.IosAppDownloadLink
|
props["IosAppDownloadLink"] = *c.NativeAppSettings.IosAppDownloadLink
|
||||||
|
props["MobileExternalBrowser"] = strconv.FormatBool(*c.NativeAppSettings.MobileExternalBrowser)
|
||||||
|
|
||||||
props["DiagnosticId"] = telemetryID
|
props["DiagnosticId"] = telemetryID
|
||||||
props["TelemetryId"] = telemetryID
|
props["TelemetryId"] = telemetryID
|
||||||
|
|||||||
@@ -2764,6 +2764,7 @@ type NativeAppSettings struct {
|
|||||||
AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||||
AndroidAppDownloadLink *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"`
|
IosAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||||
|
MobileExternalBrowser *bool `access:"site_customization,write_restrictable,cloud_restrictable"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *NativeAppSettings) SetDefaults() {
|
func (s *NativeAppSettings) SetDefaults() {
|
||||||
@@ -2782,6 +2783,10 @@ func (s *NativeAppSettings) SetDefaults() {
|
|||||||
if s.AppCustomURLSchemes == nil {
|
if s.AppCustomURLSchemes == nil {
|
||||||
s.AppCustomURLSchemes = GetDefaultAppCustomURLSchemes()
|
s.AppCustomURLSchemes = GetDefaultAppCustomURLSchemes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.MobileExternalBrowser == nil {
|
||||||
|
s.MobileExternalBrowser = NewPointer(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ElasticsearchSettings struct {
|
type ElasticsearchSettings struct {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user