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 {
|
private renderMetadata(): ReactNode {
|
||||||
|
const metadataPlacement = this.getMetadataPlacement();
|
||||||
|
if (
|
||||||
|
metadataPlacement === MetadataPlacement.NotRendered ||
|
||||||
|
metadataPlacement === MetadataPlacement.RenderedByMessageAudioComponent
|
||||||
|
) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
deletedForEveryone,
|
deletedForEveryone,
|
||||||
direction,
|
direction,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue