diff --git a/package.json b/package.json index 2b7932669e2c6a2dc4bf0715601f016afa203a9e..ec6f6d2d21dace77f9b543710b27198c256745fd 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 28e3157aa3fc143f93eb8a2c6ca1fdf01b225a05..0248abd455f59bc78757cb4ba2501c85a21d491e 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 c3f2ec5cafca71498fc892def353f04185b20b9d..48f54160cb7eec8fdee682dcfe449bb9dd417660 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"