mirror of https://github.com/zulip/zulip.git
code cleanup: Alphabetize event types in switch statement.
This commit is contained in:
parent
f1db695650
commit
663170f0d3
|
@ -146,10 +146,6 @@ export function dispatch_normal_event(event) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "user_topic":
|
|
||||||
muted_topics_ui.handle_topic_updates(event);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "muted_users":
|
case "muted_users":
|
||||||
muted_users_ui.handle_user_updates(event.muted_users);
|
muted_users_ui.handle_user_updates(event.muted_users);
|
||||||
break;
|
break;
|
||||||
|
@ -355,6 +351,7 @@ export function dispatch_normal_event(event) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "realm_emoji":
|
case "realm_emoji":
|
||||||
// The authoritative data source is here.
|
// The authoritative data source is here.
|
||||||
emoji.update_emojis(event.realm_emoji);
|
emoji.update_emojis(event.realm_emoji);
|
||||||
|
@ -365,6 +362,10 @@ export function dispatch_normal_event(event) {
|
||||||
composebox_typeahead.update_emoji_data();
|
composebox_typeahead.update_emoji_data();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "realm_export":
|
||||||
|
settings_exports.populate_exports_table(event.exports);
|
||||||
|
break;
|
||||||
|
|
||||||
case "realm_linkifiers":
|
case "realm_linkifiers":
|
||||||
page_params.realm_linkifiers = event.realm_linkifiers;
|
page_params.realm_linkifiers = event.realm_linkifiers;
|
||||||
linkifiers.update_linkifier_rules(page_params.realm_linkifiers);
|
linkifiers.update_linkifier_rules(page_params.realm_linkifiers);
|
||||||
|
@ -840,8 +841,9 @@ export function dispatch_normal_event(event) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "realm_export":
|
|
||||||
settings_exports.populate_exports_table(event.exports);
|
case "user_topic":
|
||||||
|
muted_topics_ui.handle_topic_updates(event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue