mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Reactions: skin tone support
This commit is contained in:
@@ -263,9 +263,21 @@ export function convertShortName(
|
||||
}
|
||||
|
||||
export function emojiToImage(emoji: string): string | undefined {
|
||||
if (!Object.prototype.hasOwnProperty.call(imageByEmoji, emoji)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return imageByEmoji[emoji];
|
||||
}
|
||||
|
||||
export function emojiToData(emoji: string): EmojiData | undefined {
|
||||
if (!Object.prototype.hasOwnProperty.call(dataByEmoji, emoji)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return dataByEmoji[emoji];
|
||||
}
|
||||
|
||||
function getCountOfAllMatches(str: string, regex: RegExp) {
|
||||
let match = regex.exec(str);
|
||||
let count = 0;
|
||||
|
||||
Reference in New Issue
Block a user