Don't render metadata if message bubble is collapsed

This commit is contained in:
Scott Nonnenberg 2022-03-23 10:41:38 -07:00 committed by GitHub
parent 2b0c291b07
commit 801c70b298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -673,6 +673,14 @@ export class Message extends React.PureComponent<Props, State> {
}
private renderMetadata(): ReactNode {
const metadataPlacement = this.getMetadataPlacement();
if (
metadataPlacement === MetadataPlacement.NotRendered ||
metadataPlacement === MetadataPlacement.RenderedByMessageAudioComponent
) {
return null;
}
const {
deletedForEveryone,
direction,