zulip/web/shared/src
Varun Singh a7b3dbfdd7 typeahead: Rework sort_emojis function.
When `sort_emojis` function was called from emoji_picker
module, the passed arguments did not contain `reaction_type`
field. As a result the first conditional of `is_popular` function
inside `sort_emojis` always failed -- hence the array
`popular_emoji_matches` was always empty`[]`. This compromised
search especially the order of filtered emojis.

Instead of checking for `reaction_type` === "unicode_emoji" -- we
check `is_realm_emoji` field is false. Since `is_realm_emoji`
field in always present and also results in easier types, this
should be prefered over adding `reaction_type` field to the passed
arguments.

Fixes zulip#30439
2024-07-07 11:33:41 -07:00
..
fenced_code.ts tsconfig: Enable noUncheckedIndexedAccess. 2024-05-30 16:29:23 -07:00
internal_url.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
internal_url.ts ts: Convert internal_url.js to TypeScript. 2023-05-30 10:45:01 -07:00
poll_data.js.flow docs: Update CZO links from stream to channel in docs and comments. 2024-06-11 10:44:31 -07:00
poll_data.ts submessage: Fix implicit use of any. 2024-05-06 11:31:34 -07:00
resolved_topic.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
resolved_topic.ts ts: Convert resolved_topic.js to TypeScript. 2023-05-01 10:55:36 -07:00
typeahead.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
typeahead.ts typeahead: Rework sort_emojis function. 2024-07-07 11:33:41 -07:00
typing_status.js.flow typing_status: Use TypeScript unions for 'Recipient' type. 2024-02-07 09:12:49 -08:00
typing_status.ts typing_status: Add an extra notification_event_type to Recipients. 2024-02-12 10:51:12 -08:00