Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase downloadBatchFiles batchsize from 15 to 20 #2376

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export async function downloadFile(fileUrl: string) {

export async function batchDownloadFiles(
fileUrls: string[],
batchSize: number = 15
batchSize: number = 20
): Promise<{ [fileUrl: string]: string }> {
return chat.get().matrix.batchDownloadFiles(fileUrls, batchSize);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/chat/matrix-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export class MatrixClient implements IChatClient {
return URL.createObjectURL(blob);
}

async batchDownloadFiles(fileUrls: string[], batchSize: number = 15): Promise<{ [fileUrl: string]: string }> {
async batchDownloadFiles(fileUrls: string[], batchSize: number = 20): Promise<{ [fileUrl: string]: string }> {
// Helper function to download a single file
const downloadFileWithFallback = async (fileUrl: string) => {
try {
Expand Down