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; } }