Update visual style and sandbox properly
This commit is contained in:
parent
623f2e7613
commit
b57fff5739
7 changed files with 140 additions and 26 deletions
|
@ -40,6 +40,10 @@ export class MediaEventHelper implements IDestroyable {
|
|||
this.media = mediaFromContent(this.event.getContent());
|
||||
}
|
||||
|
||||
public get fileName(): string {
|
||||
return this.event.getContent<IMediaEventContent>().body || "download";
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
if (this.media.isEncrypted) {
|
||||
if (this.sourceUrl.present) URL.revokeObjectURL(this.sourceUrl.cachedValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue