|
|
|
@ -214,9 +214,8 @@ class EmotesSettingsController extends State<EmotesSettings> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final uploadResp = await showFutureLoadingDialog(
|
|
|
|
final uploadResp = await showFutureLoadingDialog(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
future: () => Matrix.of(context)
|
|
|
|
future: () => Matrix.of(context).client.uploadContent(file.bytes,
|
|
|
|
.client
|
|
|
|
filename: file.name, contentType: file.mimeType),
|
|
|
|
.uploadContent(file.bytes, filename: file.name),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (uploadResp.error == null) {
|
|
|
|
if (uploadResp.error == null) {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
|