mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Fix MFileBody fileName not considering filename (#29589)
* Fix MFileBody fileName not considering `filename` * Update MFileBody.tsx
This commit is contained in:
parent
bbd798ef36
commit
89e22e00fb
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user