Render @mentions for group story replies
This commit is contained in:
parent
3e57899006
commit
85f706d48f
3 changed files with 10 additions and 2 deletions
|
@ -353,6 +353,7 @@ export const StoryViewsNRepliesModal = ({
|
||||||
<Message
|
<Message
|
||||||
{...MESSAGE_DEFAULT_PROPS}
|
{...MESSAGE_DEFAULT_PROPS}
|
||||||
author={reply.author}
|
author={reply.author}
|
||||||
|
bodyRanges={reply.bodyRanges}
|
||||||
contactNameColor={reply.contactNameColor}
|
contactNameColor={reply.contactNameColor}
|
||||||
containerElementRef={containerElementRef}
|
containerElementRef={containerElementRef}
|
||||||
conversationColor="ultramarine"
|
conversationColor="ultramarine"
|
||||||
|
|
|
@ -299,7 +299,13 @@ export const getStoryReplies = createSelector(
|
||||||
|
|
||||||
return {
|
return {
|
||||||
author: getAvatarData(conversation),
|
author: getAvatarData(conversation),
|
||||||
...pick(reply, ['body', 'deletedForEveryone', 'id', 'timestamp']),
|
...pick(reply, [
|
||||||
|
'body',
|
||||||
|
'bodyRanges',
|
||||||
|
'deletedForEveryone',
|
||||||
|
'id',
|
||||||
|
'timestamp',
|
||||||
|
]),
|
||||||
contactNameColor: contactNameColorSelector(
|
contactNameColor: contactNameColorSelector(
|
||||||
reply.conversationId,
|
reply.conversationId,
|
||||||
conversation.id
|
conversation.id
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import type { AttachmentType } from './Attachment';
|
import type { AttachmentType } from './Attachment';
|
||||||
|
import type { BodyRangesType, LocalizerType } from './Util';
|
||||||
import type { ContactNameColorType } from './Colors';
|
import type { ContactNameColorType } from './Colors';
|
||||||
import type { ConversationType } from '../state/ducks/conversations';
|
import type { ConversationType } from '../state/ducks/conversations';
|
||||||
import type { LocalizerType } from './Util';
|
|
||||||
import type { ReadStatus } from '../messages/MessageReadStatus';
|
import type { ReadStatus } from '../messages/MessageReadStatus';
|
||||||
import type { SendStatus } from '../messages/MessageSendState';
|
import type { SendStatus } from '../messages/MessageSendState';
|
||||||
import type { StoryDistributionListDataType } from '../state/ducks/storyDistributionLists';
|
import type { StoryDistributionListDataType } from '../state/ducks/storyDistributionLists';
|
||||||
|
@ -27,6 +27,7 @@ export type ReplyType = {
|
||||||
| 'title'
|
| 'title'
|
||||||
>;
|
>;
|
||||||
body?: string;
|
body?: string;
|
||||||
|
bodyRanges?: BodyRangesType;
|
||||||
contactNameColor?: ContactNameColorType;
|
contactNameColor?: ContactNameColorType;
|
||||||
conversationId: string;
|
conversationId: string;
|
||||||
deletedForEveryone?: boolean;
|
deletedForEveryone?: boolean;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue