diff --git a/package.json b/package.json index 2b793266..ec6f6d2d 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "react-router-dom": "^5.2.0", "react-scroll": "^1.8.2", "redux": "^4.1.0", - "revolt.js": "4.3.3-alpha.7", + "revolt.js": "4.3.3-alpha.8", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", diff --git a/src/components/common/messaging/attachments/AttachmentActions.tsx b/src/components/common/messaging/attachments/AttachmentActions.tsx index 28e3157a..0248abd4 100644 --- a/src/components/common/messaging/attachments/AttachmentActions.tsx +++ b/src/components/common/messaging/attachments/AttachmentActions.tsx @@ -19,7 +19,7 @@ export default function AttachmentActions({ attachment }: Props) { const download_url = url.replace('attachments', 'attachments/download') // for some reason revolt.js says the size is a string even though it's a number - const filesize = determineFileSize(size as unknown as number); + const filesize = determineFileSize(size); switch (metadata.type) { case 'Image': diff --git a/yarn.lock b/yarn.lock index c3f2ec5c..48f54160 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3495,10 +3495,10 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -revolt.js@4.3.3-alpha.7: - version "4.3.3-alpha.7" - resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-4.3.3-alpha.7.tgz#de6ecef444e8368aac3753761e2e10f516f50712" - integrity sha512-oi76A+EIxrD+tVRTU8s2LISFBpvMf0kpinw5rdukoc1VWpl0bCC6Kko26yC7lhVkWGLTZxHMOKaUkgbOgy0flA== +revolt.js@4.3.3-alpha.8: + version "4.3.3-alpha.8" + resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-4.3.3-alpha.8.tgz#2a191ffa9d4c304e328b5eb8d9dc1e13e1f99d9a" + integrity sha512-A6sjZ7cmeQuqS9otzANv+Rg4CfvpsTMoDARBwQuez4O7NPRopdWNHylUPo20UutAPzW9xoqVbF8673VlTu5Jag== dependencies: "@insertish/mutable" "1.1.0" axios "^0.19.2"