[Glitch] Fix custom emoji selection
Port f28715d3703b3ab860b4735eb86dd3fd1a9a99a8 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
aaf06a8186
commit
da3cfecb8d
@ -704,7 +704,7 @@ export function selectComposeSuggestion(position, token, suggestion, path) {
|
|||||||
let completion, startPosition;
|
let completion, startPosition;
|
||||||
|
|
||||||
if (suggestion.type === 'emoji') {
|
if (suggestion.type === 'emoji') {
|
||||||
completion = suggestion.native || suggestion.colons;
|
completion = suggestion.native || `:${suggestion.id}:`;
|
||||||
startPosition = position - 1;
|
startPosition = position - 1;
|
||||||
|
|
||||||
dispatch(useEmoji(suggestion));
|
dispatch(useEmoji(suggestion));
|
||||||
|
|||||||
@ -228,7 +228,7 @@ class EmojiPickerMenuImpl extends PureComponent {
|
|||||||
|
|
||||||
handleClick = (emoji, event) => {
|
handleClick = (emoji, event) => {
|
||||||
if (!emoji.native) {
|
if (!emoji.native) {
|
||||||
emoji.native = emoji.colons;
|
emoji.native = `:${emoji.id}:`;
|
||||||
}
|
}
|
||||||
if (!(event.ctrlKey || event.metaKey)) {
|
if (!(event.ctrlKey || event.metaKey)) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user