A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): measure emoji inserts by the sent length, not the shortcode (#1998)
Hampus44ecd928f0d3
diff --git a/fluxer_app/src/features/lexical/composer/ComposerInsertion.ts b/fluxer_app/src/features/lexical/composer/ComposerInsertion.tsindex d805b1b25..3ff4a1f24 100644--- a/fluxer_app/src/features/lexical/composer/ComposerInsertion.ts+++ b/fluxer_app/src/features/lexical/composer/ComposerInsertion.ts@@ -55,6 +55,8 @@ function getPayloadSegment(payload: ComposerInsertPayload): ComposerPayloadSegmereturn {type: payload.mentionType, id: payload.id, display: payload.display, wire: payload.wire};case 'customEmoji':return {type: 'emoji', id: payload.emojiId, display: payload.display, wire: payload.wire};+ case 'standardEmoji':+ return {type: 'emoji', id: payload.surrogate, display: payload.display, wire: payload.surrogate};default:return null;}