Don't render metadata if message bubble is collapsed

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-03-23 11:10:30 -07:00 committed by GitHub
parent fde16b29a8
commit 8a11ee0220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -666,6 +666,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,