diff options
Diffstat (limited to 'cmd/platform')
-rw-r--r-- | cmd/platform/server.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go index b699c4129..51078b6aa 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -24,6 +24,8 @@ import ( "github.com/spf13/cobra" ) +var MaxNotificationsPerChannelDefault int64 = 1000000 + var serverCmd = &cobra.Command{ Use: "server", Short: "Run the Mattermost server", @@ -76,6 +78,10 @@ func runServer(configFileLocation string) { utils.Cfg.SqlSettings.DataSourceReplicas = utils.Cfg.SqlSettings.DataSourceReplicas[:1] } + if !utils.IsLicensed { + utils.Cfg.TeamSettings.MaxNotificationsPerChannel = &MaxNotificationsPerChannelDefault + } + resetStatuses() api.StartServer() |