docs: Fix new_feature_tutorial to replace add_emoji_by_admins_only.

This commit replaces add_emoji_by_admins_only with
add_custom_emoji_policy in new_feature_tutorial.md
as the old boolean setting is replaced by a new
integer setting.
This commit is contained in:
sahil839 2021-05-17 15:58:43 +05:30 committed by Tim Abbott
parent 4b1313a92b
commit 9ef8727a4a
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ class Realm(models.Model)
# ...
# Define the types of the various automatically managed properties
property_types = dict(
add_emoji_by_admins_only=bool,
add_custom_emoji_policy=int,
allow_edit_history=bool,
# ...
+ mandatory_topics=bool,
@ -590,7 +590,7 @@ function dispatch_normal_event(event) {
// ...
case 'realm':
var realm_settings = {
add_emoji_by_admins_only: settings_emoji.update_custom_emoji_ui,
add_custom_emoji_policy: settings_emoji.update_custom_emoji_ui,
allow_edit_history: noop,
// ...
+ mandatory_topics: noop,