Display proper text when quoting view once message

This commit is contained in:
Fedor Indutny 2021-06-02 09:42:19 -07:00 committed by GitHub
parent 81227066ce
commit b009967a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 102 additions and 12 deletions

View file

@ -149,6 +149,7 @@ export type PropsData = {
authorName?: string;
bodyRanges?: BodyRangesType;
referencedMessageNotFound: boolean;
isViewOnce: boolean;
};
previews: Array<LinkPreviewType>;
isExpired?: boolean;
@ -1062,7 +1063,7 @@ export class Message extends React.Component<Props, State> {
const withContentAbove =
conversationType === 'group' && direction === 'incoming';
const { referencedMessageNotFound } = quote;
const { isViewOnce, referencedMessageNotFound } = quote;
const clickHandler = disableScroll
? undefined
@ -1087,6 +1088,7 @@ export class Message extends React.Component<Props, State> {
bodyRanges={quote.bodyRanges}
conversationColor={conversationColor}
customColor={customColor}
isViewOnce={isViewOnce}
referencedMessageNotFound={referencedMessageNotFound}
isFromMe={quote.isFromMe}
withContentAbove={withContentAbove}