From 029a4ae77a6bfcb8b02f440a412a641cf5db5aa7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 20 Sep 2022 10:59:22 +0200 Subject: [PATCH] fix: files get needlessly lowercased relates to https://gitlab.com/famedly/app/-/issues/1755 --- lib/src/utils/matrix_file.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/utils/matrix_file.dart b/lib/src/utils/matrix_file.dart index b51bd1ad..bf4a9575 100644 --- a/lib/src/utils/matrix_file.dart +++ b/lib/src/utils/matrix_file.dart @@ -43,7 +43,7 @@ class MatrixFile { : mimeType = mimeType ?? lookupMimeType(name, headerBytes: bytes) ?? 'application/octet-stream', - name = name.split('/').last.toLowerCase(); + name = name.split('/').last; /// derivatives the MIME type from the [bytes] and correspondingly creates a /// [MatrixFile], [MatrixImageFile], [MatrixAudioFile] or a [MatrixVideoFile]