fix: Send sticker without blocking the UI

This commit is contained in:
Christian Pauly 2022-05-27 15:16:44 +02:00
parent f89a70ea9d
commit 0c7c3bcf5a

View File

@ -392,12 +392,9 @@ class ChatController extends State<Chat> {
'url': sticker.url.toString(),
};
// send the sticker
await showFutureLoadingDialog(
context: context,
future: () => room!.sendEvent(
eventContent,
type: EventTypes.Sticker,
),
await room!.sendEvent(
eventContent,
type: EventTypes.Sticker,
);
}