Remove override of MaxNotificationsPerChannel (#17939)

Этот коммит содержится в:
Claudio Costa
2021-07-16 17:15:36 +02:00
родитель 7a3fe61bf6
Коммит 025a948905

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

@@ -73,8 +73,6 @@ import (
"github.com/mattermost/mattermost-server/v5/utils"
)
var MaxNotificationsPerChannelDefault int64 = 1000000
// declaring this as var to allow overriding in tests
var SentryDSN = "placeholder_sentry_dsn"
@@ -596,15 +594,9 @@ func NewServer(options ...Option) (*Server, error) {
s.checkPushNotificationServerUrl()
license := s.License()
if license == nil {
s.UpdateConfig(func(cfg *model.Config) {
cfg.TeamSettings.MaxNotificationsPerChannel = &MaxNotificationsPerChannelDefault
})
}
s.ReloadConfig()
license := s.License()
allowAdvancedLogging := license != nil && *license.Features.AdvancedLogging
if s.Audit == nil {