Skip to content

Commit

Permalink
increase batchSize to 25 (#2379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik21 authored Oct 22, 2024
1 parent c6966c6 commit cd01828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
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 @@ -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) => {
Expand Down

0 comments on commit cd01828

Please sign in to comment.