Respect filename field on m.file events (#8951)
This commit is contained in:
committed by
GitHub
parent
328d7ea5eb
commit
89ae540faa
@@ -47,7 +47,9 @@ export class MediaEventHelper implements IDestroyable {
|
||||
}
|
||||
|
||||
public get fileName(): string {
|
||||
return this.event.getContent<IMediaEventContent>().body || "download";
|
||||
return this.event.getContent<IMediaEventContent>().filename
|
||||
|| this.event.getContent<IMediaEventContent>().body
|
||||
|| "download";
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
|
||||
Reference in New Issue
Block a user