Custom status: normalise a Unicode emoji_name shortcode to its surrogate #546

Open
opened 2026-11-14 09:37:06 +00:00 by charles · 0 comments
Owner

Follow-up from the review of PR #536 (Task 1, #486).

CustomStatus::from_json (crates/fluxer-proto/src/models/presence.rs) trims and unsets emoji_name but does not convert a Unicode shortcode (e.g. :smile:) to its surrogate, as the original does in normalizeCustomStatus (fork:fluxer_app/src/features/user/state/CustomStatus.ts:62, UnicodeEmojis.normalizeEmojiNameToSurrogate, only when emoji_id is unset).

fluxer-proto is pure data and has no emoji table (that lives in fluxer-emoji), so the conversion belongs where the status is read for display or written: core or UI, in Task 14 or Task 32 of the Daily use plan. Seen on commit 33b06c9.

Follow-up from the review of PR #536 (Task 1, #486). `CustomStatus::from_json` (`crates/fluxer-proto/src/models/presence.rs`) trims and unsets `emoji_name` but does not convert a Unicode shortcode (e.g. `:smile:`) to its surrogate, as the original does in `normalizeCustomStatus` (`fork:fluxer_app/src/features/user/state/CustomStatus.ts:62`, `UnicodeEmojis.normalizeEmojiNameToSurrogate`, only when `emoji_id` is unset). `fluxer-proto` is pure data and has no emoji table (that lives in `fluxer-emoji`), so the conversion belongs where the status is read for display or written: core or UI, in Task 14 or Task 32 of the Daily use plan. Seen on commit 33b06c9.
charles added this to the Daily use milestone 2026-11-14 09:37:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#546
No description provided.