Allow copy/paste of formatting and mentions
This commit is contained in:
parent
320ac044a8
commit
b4caf67bf9
55 changed files with 1003 additions and 446 deletions
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue