fix downloads

This commit is contained in:
2025-05-28 12:13:56 +02:00
parent 552d1feb2e
commit ef4b4ab39f
3 changed files with 38 additions and 7 deletions

View File

@@ -247,7 +247,7 @@ export class ViewManager {
} else {
if (this.roomManager.canDownload) {
actions.push(`
<button class="btn btn-sm file-action-btn" title="Download" onclick="window.roomManager.fileManager.downloadFile('${file.id}')"
<button class="btn btn-sm file-action-btn" title="Download" onclick="window.roomManager.fileManager.downloadFile('${file.name}', '${file.path || ''}')"
style="background-color:var(--primary-opacity-8);color:var(--primary-color);">
<i class="fas fa-download"></i>
</button>