Fix MFileBody fileName not considering filename (#29589)

* Fix MFileBody fileName not considering `filename`

* Update MFileBody.tsx
This commit is contained in:
Michael Telatynski
2025-03-26 19:00:22 +00:00
committed by GitHub
parent bbd798ef36
commit 89e22e00fb

View File

@@ -120,7 +120,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
}
private get fileName(): string {
return this.content.body && this.content.body.length > 0 ? this.content.body : _t("common|attachment");
return this.props.mediaEventHelper?.fileName || _t("common|attachment");
}
private get linkText(): string {