From 663170f0d3920299c8b4504328f898cafc7f0365 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 1 May 2023 08:06:08 -0400 Subject: [PATCH] code cleanup: Alphabetize event types in switch statement. --- web/src/server_events_dispatch.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.js index c7ecc9d0d6..9a1b71d88f 100644 --- a/web/src/server_events_dispatch.js +++ b/web/src/server_events_dispatch.js @@ -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; } }