settings: Add a new topics_policy realm setting.

Added a new realm setting, `topics_policy` and deprecated
`mandatory_topics` setting as it now replaced by `topics_policy`.

Fixes part of #33549.
This commit is contained in:
Vector73
2025-06-14 11:19:57 +00:00
committed by Tim Abbott
parent 8fb1eeeb09
commit 62c67eae8e
38 changed files with 313 additions and 57 deletions

View File

@@ -91,7 +91,9 @@ const stream_data = zrequire("stream_data");
const compose_recipient = zrequire("compose_recipient");
const {set_realm} = zrequire("state_data");
const realm = {realm_mandatory_topics: true};
const realm = {
realm_topics_policy: "disable_empty_topic",
};
set_realm(realm);
const start = compose_actions.start;