Add support for PDF file captions

This commit is contained in:
N-Pex 2024-10-17 11:33:46 +02:00
parent 5e1223fc01
commit 6f05d14877
6 changed files with 43 additions and 11 deletions

View file

@ -914,6 +914,7 @@ class Util {
}
download(matrixClient, event) {
console.log("DOWNLOAD");
this
.getAttachment(matrixClient, event)
.then((url) => {
@ -924,6 +925,7 @@ class Util {
// PDFs are shown inline, not downloaded
link.download = event.getContent().body || this.$t("fallbacks.download_name");
}
console.log("LINK", link);
document.body.appendChild(link);
link.click();
setTimeout(function () {