settings: Add can_add_custom_emoji_group realm setting.

Added `can_add_custom_emoji_group` setting to replace `add_custom_emoji_policy`.
This commit is contained in:
Vector73
2024-10-13 12:39:11 +05:30
committed by Tim Abbott
parent b95225d071
commit f733ab112c
26 changed files with 296 additions and 58 deletions

View File

@@ -205,7 +205,6 @@ export function dispatch_normal_event(event) {
case "realm": {
const realm_settings = {
add_custom_emoji_policy: settings_emoji.update_custom_emoji_ui,
allow_edit_history: noop,
allow_message_editing: noop,
edit_topic_policy: noop,
@@ -300,6 +299,10 @@ export function dispatch_normal_event(event) {
gear_menu.rerender();
}
if (key === "can_add_custom_emoji_group") {
settings_emoji.update_custom_emoji_ui();
}
if (
key === "can_create_public_channel_group" ||
key === "can_create_private_channel_group" ||