Return type

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-13 09:20:40 +02:00
parent af7769ce93
commit 4cf4ab2266
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -439,7 +439,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
}
// Overidden by MStickerBody
protected getPlaceholder(width: number, height: number) {
protected getPlaceholder(width: number, height: number): JSX.Element {
const blurhash = this.props.mxEvent.getContent().info[BLURHASH_FIELD];
if (blurhash) return <Blurhash hash={blurhash} width={width} height={height} />;
return <div className="mx_MImageBody_thumbnail_spinner">