Hide image banner on stickers, they have a tooltip already (#8641)

This commit is contained in:
Michael Telatynski 2022-05-18 10:08:33 +01:00 committed by GitHub
parent 65e27cd6be
commit ce73b9988e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 16 deletions

View file

@ -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
}
}