diff options
Diffstat (limited to 'app/app.go')
-rw-r--r-- | app/app.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/app.go b/app/app.go index 1cec749da..dabd00571 100644 --- a/app/app.go +++ b/app/app.go @@ -218,6 +218,7 @@ func New(options ...Option) (outApp *App, outErr error) { } app.Srv.Store = app.newStore() + app.AddConfigListener(func(_, current *model.Config) { if current.SqlSettings.EnablePublicChannelsMaterialization != nil && !*current.SqlSettings.EnablePublicChannelsMaterialization { app.Srv.Store.Channel().DisableExperimentalPublicChannelsMaterialization() |