Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

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.ts
index 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): ComposerPayloadSegme
return {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;
}