Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property (#28154)

* Adds a ConnectedWorkspaces.MaxPostsPerSync configuration property

* Fix linter
Этот коммит содержится в:
Miguel de la Cruz
2024-09-12 20:40:44 +02:00
коммит произвёл GitHub
родитель d1557271f1
Коммит d1ae710d45
4 изменённых файлов: 13 добавлений и 5 удалений

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

@@ -265,6 +265,8 @@ const (
OpenidSettingsDefaultScope = "profile openid email"
LocalModeSocketPath = "/var/tmp/mattermost_local.socket"
ConnectedWorkspacesSettingsDefaultMaxPostsPerSync = 50 // a bit more than 4 typical screenfulls of posts
)
func GetDefaultAppCustomURLSchemes() []string {
@@ -3278,6 +3280,7 @@ type ConnectedWorkspacesSettings struct {
EnableSharedChannels *bool
EnableRemoteClusterService *bool
DisableSharedChannelsStatusSync *bool
MaxPostsPerSync *int
}
func (c *ConnectedWorkspacesSettings) SetDefaults(isUpdate bool, e ExperimentalSettings) {
@@ -3300,6 +3303,10 @@ func (c *ConnectedWorkspacesSettings) SetDefaults(isUpdate bool, e ExperimentalS
if c.DisableSharedChannelsStatusSync == nil {
c.DisableSharedChannelsStatusSync = NewPointer(false)
}
if c.MaxPostsPerSync == nil {
c.MaxPostsPerSync = NewPointer(ConnectedWorkspacesSettingsDefaultMaxPostsPerSync)
}
}
type GlobalRelayMessageExportSettings struct {