Skip to content

Commit

Permalink
wip emoji: Order "popular" emoji canonically amongst themselves; TODO…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
gnprice committed Dec 8, 2024
1 parent 6e2fa25 commit 56b78cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/model/emoji.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,18 @@ class EmojiStoreImpl with EmojiStore {
List<EmojiCandidate> _generateAllCandidates() {
final results = <EmojiCandidate>[];

// Include the "popular" emoji in their canonical order
// relative to each other.
results.addAll(zulipPopularEmojis);

final namesOverridden = {
for (final emoji in realmEmoji.values) emoji.name,
'zulip',
};
// TODO(log) if _serverEmojiData missing
for (final entry in (_serverEmojiData ?? {}).entries) {
if (_popularEmojiCodes.contains(entry.key)) continue;

final allNames = entry.value;
final String emojiName;
final List<String>? aliases;
Expand Down

0 comments on commit 56b78cd

Please sign in to comment.