Hide image banner on stickers, they have a tooltip already (#8641)
This commit is contained in:
parent
65e27cd6be
commit
ce73b9988e
4 changed files with 27 additions and 16 deletions
|
@ -19,6 +19,7 @@ import React from 'react';
|
|||
import MImageBody from './MImageBody';
|
||||
import { BLURHASH_FIELD } from "../../../utils/image-media";
|
||||
import Tooltip from "../elements/Tooltip";
|
||||
import { IMediaEventContent } from "../../../customisations/models/IMediaEventContent";
|
||||
|
||||
export default class MStickerBody extends MImageBody {
|
||||
// Mostly empty to prevent default behaviour of MImageBody
|
||||
|
@ -69,4 +70,8 @@ export default class MStickerBody extends MImageBody {
|
|||
protected getFileBody() {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected getBanner(content: IMediaEventContent): JSX.Element {
|
||||
return null; // we don't need a banner, we have a tooltip
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue