Render disappearing message countdown even if deleted for everyone

This commit is contained in:
Scott Nonnenberg 2021-09-10 07:23:04 -07:00 committed by GitHub
parent c7e7d55af4
commit 6efb6da937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 2 deletions

View file

@ -11,6 +11,7 @@ import { Timestamp } from './Timestamp';
import { Spinner } from '../Spinner';
type PropsType = {
deletedForEveryone?: boolean;
direction: DirectionType;
expirationLength?: number;
expirationTimestamp?: number;
@ -28,6 +29,7 @@ type PropsType = {
export const MessageMetadata: FunctionComponent<PropsType> = props => {
const {
deletedForEveryone,
direction,
expirationLength,
expirationTimestamp,
@ -130,7 +132,8 @@ export const MessageMetadata: FunctionComponent<PropsType> = props => {
<Spinner svgSize="small" size="14px" direction={direction} />
</div>
) : null}
{!textPending &&
{!deletedForEveryone &&
!textPending &&
direction === 'outgoing' &&
status !== 'error' &&
status !== 'partial-sent' ? (