diff --git a/src/lib/chat/index.ts b/src/lib/chat/index.ts index 7c506d679..bc87daa3c 100644 --- a/src/lib/chat/index.ts +++ b/src/lib/chat/index.ts @@ -397,7 +397,7 @@ export async function downloadFile(fileUrl: string) { export async function batchDownloadFiles( fileUrls: string[], isThumbnail: boolean = false, - batchSize: number = 20 + batchSize: number = 25 ): Promise<{ [fileUrl: string]: string }> { return chat.get().matrix.batchDownloadFiles(fileUrls, isThumbnail, batchSize); } diff --git a/src/lib/chat/matrix-client.ts b/src/lib/chat/matrix-client.ts index 8bb0d7575..8ad35ca76 100644 --- a/src/lib/chat/matrix-client.ts +++ b/src/lib/chat/matrix-client.ts @@ -693,7 +693,7 @@ export class MatrixClient implements IChatClient { async batchDownloadFiles( fileUrls: string[], isThumbnail: boolean = false, - batchSize: number = 20 + batchSize: number = 25 ): Promise<{ [fileUrl: string]: string }> { // Helper function to download a single file const downloadFileWithFallback = async (fileUrl: string) => {