mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-23 09:39:02 -05:00
Don't add /download to url from attachment context menu
This commit is contained in:
parent
5f3b5600b4
commit
75c7b2eb6d
1 changed files with 2 additions and 6 deletions
|
@ -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() {
|
|||
<CMNotifications />
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue