Added last-message's author to group conversation list in left pane

This commit is contained in:
Alvaro 2022-08-25 10:16:37 -06:00 committed by GitHub
parent eadef45290
commit ca6300a86a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 45 additions and 5 deletions

View file

@ -27,6 +27,7 @@ type OpenConversationActionType = (
export type Props = {
direction?: 'incoming' | 'outgoing';
text: string;
author?: string;
textAttachment?: Pick<AttachmentType, 'pending' | 'digest' | 'key'>;
/** If set, all emoji will be the same size. Otherwise, just one emoji will be large. */
disableJumbomoji?: boolean;
@ -74,6 +75,7 @@ export function MessageBody({
onIncreaseTextLength,
openConversation,
text,
author,
textAttachment,
kickOffBodyDownload,
}: Props): JSX.Element {
@ -144,6 +146,20 @@ export function MessageBody({
return (
<span>
{author && (
<>
<span className="MessageBody__author">
{renderEmoji({
i18n,
text: author,
sizeClass,
key: 0,
renderNonEmoji: renderNewLines,
})}
</span>
:{' '}
</>
)}
{disableLinks ? (
renderEmoji({
i18n,