mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
Merge branch 'BramvdnHeuvel/emote-content-type' into 'main'
Explicitly add Content-Type header on emote upload See merge request famedly/fluffychat!507
This commit is contained in:
commit
7677c41d61
@ -214,9 +214,8 @@ class EmotesSettingsController extends State<EmotesSettings> {
|
||||
}
|
||||
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(() {
|
||||
|
Loading…
Reference in New Issue
Block a user