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:
commit
5dc2eb5bda
1 changed files with 3 additions and 6 deletions
|
|
@ -392,12 +392,9 @@ class ChatController extends State<Chat> {
|
||||||
'url': sticker.url.toString(),
|
'url': sticker.url.toString(),
|
||||||
};
|
};
|
||||||
// send the sticker
|
// send the sticker
|
||||||
await showFutureLoadingDialog(
|
await room!.sendEvent(
|
||||||
context: context,
|
eventContent,
|
||||||
future: () => room!.sendEvent(
|
type: EventTypes.Sticker,
|
||||||
eventContent,
|
|
||||||
type: EventTypes.Sticker,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue