diff --git a/src/components/common/messaging/attachments/AttachmentActions.tsx b/src/components/common/messaging/attachments/AttachmentActions.tsx index b6e5699d8..8a4fe5759 100644 --- a/src/components/common/messaging/attachments/AttachmentActions.tsx +++ b/src/components/common/messaging/attachments/AttachmentActions.tsx @@ -27,7 +27,7 @@ export default function AttachmentActions({ attachment }: Props) { const url = client.generateFileURL(attachment); const open_url = `${url}/${filename}`; - const download_url = url?.replace("attachments", "attachments/download"); + const download_url = url; const filesize = determineFileSize(size); diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx index 55c2dbb7d..0999b38dd 100644 --- a/src/lib/ContextMenus.tsx +++ b/src/lib/ContextMenus.tsx @@ -288,11 +288,7 @@ export default function ContextMenus() { window.open( // ! FIXME: do this from revolt.js client - .generateFileURL(data.attachment) - ?.replace( - "attachments", - "attachments/download", - ), + .generateFileURL(data.attachment), isFirefox || window.native ? "_blank" : "_self", ); } @@ -1293,4 +1289,4 @@ export default function ContextMenus() { ); -} \ No newline at end of file +}