mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(app): measure emoji inserts by the sent length, not the shortcode (#1998)
This commit is contained in:
1 parent
3f5c8d8d0a
commit
44ecd928f0
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user