typeahead: Sort emojis by categories initially.

For more consistency between the emoji picker and the typeahead, now the
initial emoji list is ordered by categories for the typeahead too.

Tachnically, this means that `emoji_picker.rebuild_catalog` now updates
the typeahead's emoji data with category wise sorted emojis. Compose box
typeahead initialisation does not update the emoji data anymore.
This commit is contained in:
N-Shar-ma
2024-04-12 03:44:42 +05:30
committed by Tim Abbott
parent f31579a220
commit f39b57dd04
5 changed files with 24 additions and 19 deletions

View File

@@ -15,7 +15,6 @@ import * as compose_call_ui from "./compose_call_ui";
import * as compose_pm_pill from "./compose_pm_pill";
import * as compose_recipient from "./compose_recipient";
import * as compose_state from "./compose_state";
import * as composebox_typeahead from "./composebox_typeahead";
import * as dark_theme from "./dark_theme";
import * as emoji from "./emoji";
import * as emoji_picker from "./emoji_picker";
@@ -391,7 +390,6 @@ export function dispatch_normal_event(event) {
// And then let other widgets know.
settings_emoji.populate_emoji();
emoji_picker.rebuild_catalog();
composebox_typeahead.update_emoji_data();
break;
case "realm_export":