This commit is contained in:
May 2023-05-22 13:04:16 -07:00 committed by GitHub
parent b879b3702c
commit 736f7fc138
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,7 +309,7 @@ export default class Files {
if (msg?.attachments) {
let attach = Array.from(msg.attachments.values())
for (let i = (useRanges && xi == scan_msg_begin ? ( scan_files_begin - (xi*10) ) : 0); i < (useRanges && xi == scan_msg_end ? ( scan_files_end - (xi*10) + 1 ) : attach.length); i++) {
for (let i = (useRanges && xi == scan_msg_begin ? ( scan_files_begin - (xi*10) ) : 0); i < (useRanges && xi == scan_msg_end-1 ? ( scan_files_end - (xi*10) + 1 ) : attach.length); i++) {
let d = await axios.get(
attach[i].url,