Merge branch 'krille/send-sticker-without-waiting' into 'main'

fix: Send sticker without blocking the UI

See merge request famedly/fluffychat!889
This commit is contained in:
Krille Fear 2022-05-30 08:27:52 +00:00
commit f7d7ddee2d

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(
await room!.sendEvent(
eventContent,
type: EventTypes.Sticker,
),
);
}