mirror of https://github.com/zulip/zulip.git
server_events: Fix the updation code for `add_emoji_by_admins_only`.
`add_emoji_by_admins_only` backend setting is represented by page_param's `realm_add_emoji_by_admins_only` attribute. When this setting was changed we were wrongly updating the `add_emoji_by_admins_only` attribute which doesn't exist.
This commit is contained in:
parent
86de196d12
commit
42ac7fa5cc
|
@ -74,7 +74,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
|||
page_params.realm_email_changes_disabled = event.value;
|
||||
settings_org.toggle_email_change_display();
|
||||
} else if (event.op === 'update' && event.property === 'add_emoji_by_admins_only') {
|
||||
page_params.add_emoji_by_admins_only = event.value;
|
||||
page_params.realm_add_emoji_by_admins_only = event.value;
|
||||
} else if (event.op === 'update' && event.property === 'restricted_to_domain') {
|
||||
page_params.realm_restricted_to_domain = event.value;
|
||||
} else if (event.op === 'update' && event.property === 'message_retention_days') {
|
||||
|
|
Loading…
Reference in New Issue