From 5df5a5e7203cec324c771db34623bdc8c618e63b Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Sun, 29 Aug 2021 17:44:56 +0000 Subject: [PATCH] Explicitly add Content-Type header on emote upload --- lib/pages/settings_emotes.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/pages/settings_emotes.dart b/lib/pages/settings_emotes.dart index a41659e7a..ba3a38ccc 100644 --- a/lib/pages/settings_emotes.dart +++ b/lib/pages/settings_emotes.dart @@ -214,9 +214,8 @@ class EmotesSettingsController extends State { } final uploadResp = await showFutureLoadingDialog( context: context, - future: () => Matrix.of(context) - .client - .uploadContent(file.bytes, filename: file.name), + future: () => Matrix.of(context).client.uploadContent(file.bytes, + filename: file.name, contentType: file.mimeType), ); if (uploadResp.error == null) { setState(() {