mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Allow copy/paste of formatting and mentions
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
import type { FunctionComponent, ReactNode } from 'react';
|
||||
import React, { useCallback } from 'react';
|
||||
import { noop } from 'lodash';
|
||||
|
||||
import { ContactName } from '../conversation/ContactName';
|
||||
|
||||
@@ -21,6 +22,8 @@ import {
|
||||
RenderLocation,
|
||||
} from '../conversation/MessageTextRenderer';
|
||||
|
||||
const EMPTY_OBJECT = Object.freeze(Object.create(null));
|
||||
|
||||
export type PropsDataType = {
|
||||
isSelected?: boolean;
|
||||
isSearchingInConversation?: boolean;
|
||||
@@ -166,8 +169,8 @@ export const MessageSearchResult: FunctionComponent<PropsType> = React.memo(
|
||||
disableLinks
|
||||
emojiSizeClass={undefined}
|
||||
i18n={i18n}
|
||||
isSpoilerExpanded={false}
|
||||
onMentionTrigger={() => null}
|
||||
isSpoilerExpanded={EMPTY_OBJECT}
|
||||
onMentionTrigger={noop}
|
||||
renderLocation={RenderLocation.SearchResult}
|
||||
textLength={cleanedSnippet.length}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user