File tree 2 files changed +3
-7
lines changed
components/common/messaging/attachments
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default function AttachmentActions({ attachment }: Props) {
27
27
28
28
const url = client . generateFileURL ( attachment ) ;
29
29
const open_url = `${ url } /${ filename } ` ;
30
- const download_url = url ?. replace ( "attachments" , "attachments/download" ) ;
30
+ const download_url = url ;
31
31
32
32
const filesize = determineFileSize ( size ) ;
33
33
Original file line number Diff line number Diff line change @@ -288,11 +288,7 @@ export default function ContextMenus() {
288
288
window . open (
289
289
// ! FIXME: do this from revolt.js
290
290
client
291
- . generateFileURL ( data . attachment )
292
- ?. replace (
293
- "attachments" ,
294
- "attachments/download" ,
295
- ) ,
291
+ . generateFileURL ( data . attachment ) ,
296
292
isFirefox || window . native ? "_blank" : "_self" ,
297
293
) ;
298
294
}
@@ -1293,4 +1289,4 @@ export default function ContextMenus() {
1293
1289
< CMNotifications />
1294
1290
</ >
1295
1291
) ;
1296
- }
1292
+ }
You can’t perform that action at this time.
0 commit comments