Import/export additional message flags

This commit is contained in:
Fedor Indutny
2024-06-13 16:26:26 -07:00
committed by GitHub
parent cf8023821c
commit de638fbc2b
14 changed files with 85 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ type PropsType = {
i18n: LocalizerType;
id: string;
isEditedMessage?: boolean;
isSMS?: boolean;
isInline?: boolean;
isOutlineOnlyBubble?: boolean;
isShowingImage: boolean;
@@ -56,6 +57,7 @@ export const MessageMetadata = forwardRef<HTMLDivElement, Readonly<PropsType>>(
i18n,
id,
isEditedMessage,
isSMS,
isOutlineOnlyBubble,
isInline,
isShowingImage,
@@ -211,6 +213,11 @@ export const MessageMetadata = forwardRef<HTMLDivElement, Readonly<PropsType>>(
</button>
)}
{timestampNode}
{isSMS ? (
<div
className={`module-message__metadata__sms module-message__metadata__sms--${direction}`}
/>
) : null}
{expirationLength ? (
<ExpireTimer
direction={metadataDirection}