[MM-14502] Add experimental flag to enable click-to-reply (#10415)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3bbec7e954
Коммит
3efd28c2ab
@@ -44,6 +44,7 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L
|
|||||||
|
|
||||||
// This setting is only temporary, so keep using the old setting name for the mobile and web apps
|
// This setting is only temporary, so keep using the old setting name for the mobile and web apps
|
||||||
props["ExperimentalEnablePostMetadata"] = strconv.FormatBool(!*c.ExperimentalSettings.DisablePostMetadata)
|
props["ExperimentalEnablePostMetadata"] = strconv.FormatBool(!*c.ExperimentalSettings.DisablePostMetadata)
|
||||||
|
props["ExperimentalEnableClickToReply"] = strconv.FormatBool(*c.ExperimentalSettings.EnableClickToReply)
|
||||||
|
|
||||||
if *c.ServiceSettings.ExperimentalChannelOrganization || *c.ServiceSettings.ExperimentalGroupUnreadChannels != model.GROUP_UNREAD_CHANNELS_DISABLED {
|
if *c.ServiceSettings.ExperimentalChannelOrganization || *c.ServiceSettings.ExperimentalGroupUnreadChannels != model.GROUP_UNREAD_CHANNELS_DISABLED {
|
||||||
props["ExperimentalChannelOrganization"] = strconv.FormatBool(true)
|
props["ExperimentalChannelOrganization"] = strconv.FormatBool(true)
|
||||||
|
|||||||
@@ -361,7 +361,8 @@
|
|||||||
"ClientSideCertCheck": "secondary",
|
"ClientSideCertCheck": "secondary",
|
||||||
"DisablePostMetadata": false,
|
"DisablePostMetadata": false,
|
||||||
"LinkMetadataTimeoutMilliseconds": 5000,
|
"LinkMetadataTimeoutMilliseconds": 5000,
|
||||||
"RestrictSystemAdmin": false
|
"RestrictSystemAdmin": false,
|
||||||
|
"EnableClickToReply": false
|
||||||
},
|
},
|
||||||
"AnalyticsSettings": {
|
"AnalyticsSettings": {
|
||||||
"MaxUsersForStatistics": 2500
|
"MaxUsersForStatistics": 2500
|
||||||
|
|||||||
@@ -717,6 +717,7 @@ type ExperimentalSettings struct {
|
|||||||
ClientSideCertEnable *bool
|
ClientSideCertEnable *bool
|
||||||
ClientSideCertCheck *string
|
ClientSideCertCheck *string
|
||||||
DisablePostMetadata *bool
|
DisablePostMetadata *bool
|
||||||
|
EnableClickToReply *bool
|
||||||
LinkMetadataTimeoutMilliseconds *int64
|
LinkMetadataTimeoutMilliseconds *int64
|
||||||
RestrictSystemAdmin *bool
|
RestrictSystemAdmin *bool
|
||||||
}
|
}
|
||||||
@@ -734,6 +735,10 @@ func (s *ExperimentalSettings) SetDefaults() {
|
|||||||
s.DisablePostMetadata = NewBool(false)
|
s.DisablePostMetadata = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.EnableClickToReply == nil {
|
||||||
|
s.EnableClickToReply = NewBool(false)
|
||||||
|
}
|
||||||
|
|
||||||
if s.LinkMetadataTimeoutMilliseconds == nil {
|
if s.LinkMetadataTimeoutMilliseconds == nil {
|
||||||
s.LinkMetadataTimeoutMilliseconds = NewInt64(EXPERIMENTAL_SETTINGS_DEFAULT_LINK_METADATA_TIMEOUT_MILLISECONDS)
|
s.LinkMetadataTimeoutMilliseconds = NewInt64(EXPERIMENTAL_SETTINGS_DEFAULT_LINK_METADATA_TIMEOUT_MILLISECONDS)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user