diff --git a/apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts b/apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts index b18c6f4d98653..bd30f23ed095a 100644 --- a/apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts +++ b/apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts @@ -489,7 +489,7 @@ export class MatrixBridge implements IFederationBridge { } public async getReadStreamForFileFromUrl(externalUserId: string, fileUrl: string): Promise { - const response = await fetch(this.convertMatrixUrlToHttp(externalUserId, fileUrl)); + const response = await fetch(await this.convertMatrixUrlToHttp(externalUserId, fileUrl)); if (!response.body) { throw new Error('Not able to download the file'); }