mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Preserve links with embedded emoji
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
getRegex,
|
||||
getReplacementData,
|
||||
getTitle,
|
||||
SizeClassType,
|
||||
} from '../../util/emoji';
|
||||
|
||||
import { Localizer, RenderTextCallback } from '../../types/Util';
|
||||
@@ -20,7 +21,7 @@ function getImageTag({
|
||||
i18n,
|
||||
}: {
|
||||
match: any;
|
||||
sizeClass: string | undefined;
|
||||
sizeClass?: SizeClassType;
|
||||
key: string | number;
|
||||
i18n: Localizer;
|
||||
}) {
|
||||
@@ -51,7 +52,7 @@ function getImageTag({
|
||||
interface Props {
|
||||
text: string;
|
||||
/** A class name to be added to the generated emoji images */
|
||||
sizeClass?: '' | 'small' | 'medium' | 'large' | 'jumbo';
|
||||
sizeClass?: SizeClassType;
|
||||
/** Allows you to customize now non-newlines are rendered. Simplest is just a <span>. */
|
||||
renderNonEmoji?: RenderTextCallback;
|
||||
i18n: Localizer;
|
||||
|
||||
Reference in New Issue
Block a user