);
return (
{ thumbUrl && !this.state.imgError ? thumbnail : '' }
);
}
render() {
const content = this.props.mxEvent.getContent();
if (this.state.error !== null) {
return (
{ _t("Error decrypting image") }
);
}
if (content.file !== undefined && this.state.decryptedUrl === null) {
// Need to decrypt the attachment
// The attachment is decrypted in componentDidMount.
// For now add an img tag with a spinner.
return (