diff --git a/dendrite-config.yaml b/dendrite-config.yaml index 8529d7ba2..83d20cdb1 100644 --- a/dendrite-config.yaml +++ b/dendrite-config.yaml @@ -70,6 +70,7 @@ global: # Server notices allows server admins to send messages to all users. server_notices: + enabled: false # The server localpart to be used when sending notices, ensure this is not yet take local_part: "server" # The displayname to be used when sending notices diff --git a/setup/config/config_global.go b/setup/config/config_global.go index 526e0bc6a..b7ee1f619 100644 --- a/setup/config/config_global.go +++ b/setup/config/config_global.go @@ -129,6 +129,7 @@ func (c *Metrics) Verify(configErrs *ConfigErrors, isMonolith bool) { // ServerNotices defines the configuration used for sending server notices type ServerNotices struct { + Enabled bool `yaml:"enabled"` // The localpart to be used when sending notices LocalPart string `yaml:"local_part"` // The displayname to be used when sending notices