code cleanup: Alphabetize event types in switch statement.

This commit is contained in:
Steve Howell 2023-05-01 08:06:08 -04:00 committed by Tim Abbott
parent f1db695650
commit 663170f0d3
1 changed files with 8 additions and 6 deletions

View File

@ -146,10 +146,6 @@ export function dispatch_normal_event(event) {
}
break;
case "user_topic":
muted_topics_ui.handle_topic_updates(event);
break;
case "muted_users":
muted_users_ui.handle_user_updates(event.muted_users);
break;
@ -355,6 +351,7 @@ export function dispatch_normal_event(event) {
break;
}
break;
case "realm_emoji":
// The authoritative data source is here.
emoji.update_emojis(event.realm_emoji);
@ -365,6 +362,10 @@ export function dispatch_normal_event(event) {
composebox_typeahead.update_emoji_data();
break;
case "realm_export":
settings_exports.populate_exports_table(event.exports);
break;
case "realm_linkifiers":
page_params.realm_linkifiers = event.realm_linkifiers;
linkifiers.update_linkifier_rules(page_params.realm_linkifiers);
@ -840,8 +841,9 @@ export function dispatch_normal_event(event) {
);
}
break;
case "realm_export":
settings_exports.populate_exports_table(event.exports);
case "user_topic":
muted_topics_ui.handle_topic_updates(event);
break;
}
}