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

@ -587,6 +587,7 @@ export class Message extends React.PureComponent<Props, State> {
const {
attachments,
collapseMetadata,
deletedForEveryone,
direction,
expirationLength,
expirationTimestamp,
@ -613,6 +614,7 @@ export class Message extends React.PureComponent<Props, State> {
return (
<MessageMetadata
deletedForEveryone={deletedForEveryone}
direction={direction}
expirationLength={expirationLength}
expirationTimestamp={expirationTimestamp}
@ -2080,7 +2082,12 @@ export class Message extends React.PureComponent<Props, State> {
const { isTapToView, deletedForEveryone } = this.props;
if (deletedForEveryone) {
return this.renderText();
return (
<>
{this.renderText()}
{this.renderMetadata()}
</>
);
}
if (isTapToView) {