Don't render metadata if message bubble is collapsed
This commit is contained in:
parent
2b0c291b07
commit
801c70b298
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue