fix: Send sticker without blocking the UI
This commit is contained in:
parent
108a47a89d
commit
f2aed44068
1 changed files with 3 additions and 6 deletions
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue